GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(fleet-paperwork): create readback compares body, state and labels (#6901) by dezren39 · Pull Request #7799 · developing-today/code Conversation
|
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ❌ FailedThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 91142b0b7f
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Aligns fleet-paperwork create’s post-create readback verification with the documented contract by validating more than just issue title/number, preventing false “created+verified” results when body/state/labels are incorrect.
Changes:
| File | Description |
|---|---|
| infra/fleet-paperwork/fleet_paperwork.py | Strengthens create readback verification to include body/state/labels mismatches. |
| infra/fleet-paperwork/README.md | Documents label comparison as part of create verification. |
| infra/fleet-paperwork/tests/test_fleet_paperwork.py | Adds tests ensuring readback validation fails on dropped/mangled body, wrong state, or missing labels. |
Review effort: Lite
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if got.get("body") != body: | ||
| die( | ||
| f"readback mismatch for {args.repo}#{number}: body sent " | ||
| f"{len(body)} chars, read back {len(got.get('body') or '')} chars " | ||
| f"(body={_shape_name(got.get('body'))})" | ||
| ) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e48c43c (task 11300, lane code-m shepherd): shape-safe readback diagnostics — lengths computed only for strings (n/a otherwise), labels matched as a set of string names with malformed entries dying as a readback mismatch, fake_http stub aligned with fp.http() (body/expect). New tests: test_non_string_body_readback_fails_cleanly, test_malformed_label_entry_fails_cleanly. Full suite: 38 tests OK on the laptop.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| have = sorted( | ||
| lbl.get("name") if isinstance(lbl, dict) else lbl | ||
| for lbl in (got.get("labels") or []) | ||
| ) | ||
| missing = [name for name in want if name not in have] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e48c43c (task 11300, lane code-m shepherd): shape-safe readback diagnostics — lengths computed only for strings (n/a otherwise), labels matched as a set of string names with malformed entries dying as a readback mismatch, fake_http stub aligned with fp.http() (body/expect). New tests: test_non_string_body_readback_fails_cleanly, test_malformed_label_entry_fails_cleanly. Full suite: 38 tests OK on the laptop.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| def fake_http(method, path, token, payload=None): | ||
| paths.append((method, path)) | ||
| if method == "POST": | ||
| return 200, created | ||
| return 200, readback |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e48c43c (task 11300, lane code-m shepherd): shape-safe readback diagnostics — lengths computed only for strings (n/a otherwise), labels matched as a set of string names with malformed entries dying as a readback mismatch, fake_http stub aligned with fp.http() (body/expect). New tests: test_non_string_body_readback_fails_cleanly, test_malformed_label_entry_fails_cleanly. Full suite: 38 tests OK on the laptop.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… review) Body/label readback comparisons no longer raise TypeError on non-string bodies or malformed label entries: lengths are computed defensively, labels are matched as a set of string names, and malformed entries die with a readback mismatch. fake_http stub aligned with fp.http() signature (body/expect). Adds tests for non-string body readback and malformed label entries.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
fleet-paperwork: create readback verifies only title+number, not the body/state/labels the README promises
There was an error while loading. Please reload this page.