Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
59dbcf0 to
668e26d
Compare
There was a problem hiding this comment.
1 issue found across 2 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="weblate/formats/tests/test_txt.py">
<violation number="1" location="weblate/formats/tests/test_txt.py:69">
P2: This change drops the save() check that an existing target file keeps its contents. Only delete_unit now runs with an existing file, and save() is only tested when the file is absent. Keep the existing-file save case, for example by running save() under the same `exists` loop.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
| (base / "changelogs").symlink_to(outside, target_is_directory=True) | ||
| target = outside / "title.txt" | ||
| unit = TextItem("changelogs/title.txt", 1, "") | ||
| for exists in (True, False): |
There was a problem hiding this comment.
P2: This change drops the save() check that an existing target file keeps its contents. Only delete_unit now runs with an existing file, and save() is only tested when the file is absent. Keep the existing-file save case, for example by running save() under the same exists loop.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At weblate/formats/tests/test_txt.py, line 69:
<comment>This change drops the save() check that an existing target file keeps its contents. Only delete_unit now runs with an existing file, and save() is only tested when the file is absent. Keep the existing-file save case, for example by running save() under the same `exists` loop.</comment>
<file context>
@@ -65,14 +65,16 @@ class AppStoreWritePathTest(SimpleTestCase):
- with self.assertRaises(ValidationError):
- store.save()
- self.assertEqual(target.read_text(encoding="utf-8"), "keep")
+ for exists in (True, False):
+ with self.subTest(exists=exists):
+ if exists:
</file context>
Validate each constructed metadata filename before atomic replacement or unlink, including files absent when the format was loaded. Cover both write and deletion through a symlinked directory. Discovered by Anthropic’s OSS Scanner, as vulnerability ANT-2026-RNTER5ZN.
Exercise the delete method with both present and absent files through a symlinked directory, and place the security changelog entry below the shared insertion point. Discovered by Anthropic’s OSS Scanner, as vulnerability ANT-2026-RNTER5ZN.
Verify an unsafe App Store save leaves a pre-existing external target unchanged as well as rejecting a missing target. Discovered by Anthropic’s OSS Scanner, as vulnerability ANT-2026-RNTER5ZN.
668e26d to
699c76c
Compare
❌ 3 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Validate each constructed metadata filename before atomic replacement or unlink, including files absent when the format was loaded. Cover both write and deletion through a symlinked directory.
Discovered by Anthropic’s OSS Scanner, as vulnerability ANT-2026-RNTER5ZN.