Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review SummaryThis 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. |
| - name: Generate coverage | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| uses: taiki-e/install-action@cargo-llvm-cov |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b71ec7ac5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| python - <<'PY' | ||
| import json, pathlib, sys | ||
| summary_path = pathlib.Path("coverage/summary.json") | ||
| with open("${{ github.step_summary }}", "a", encoding="utf-8") as fh: |
There was a problem hiding this comment.
Read the summary path from GITHUB_STEP_SUMMARY
On GitHub Actions, github.step_summary is not a defined context property, so this expression resolves to an empty string and Python raises FileNotFoundError at open(""). Consequently, the coverage summary step fails on every run, even when coverage generation succeeds, and never publishes either the metrics or the missing-data message. Read the runner-provided path using os.environ["GITHUB_STEP_SUMMARY"] instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Stale comment
Head
8b71ec7ac5ccf12d97b7ef941ae2178376118473. Not green. Checks on this SHA were still pending. This review asks for changes before the fail-closed editor job can stay green.Commands.
python3 scripts/ci/test_workflow_policy.pyexit 0 (16 tests).open("")in Python raisesFileNotFoundError. Schedule run41016083583job123932606885(Windows, base1e6ff89dc): build, unit tests (4047 passed; 0 failed; 2 ignored), and the three integration binaries passed; clippy exited 1 onstruct ReadWait is never constructed; the summary step ran underpwsh. Schedule run41014232005job123926797452: tarpaulin emitted a coverage report (125 tests passed) in about 11 minutes and the HTML upload step ran.Not run.
cargo test -p astraweave-core --test replay_hash(no hashed crate in the diff). GPU frame budget (no render change). Fullaw_editorrebuild here.Measurements. not measured.
Replay hashes. unchanged expected.
astraweave-llm's ollama-on read path, caps, and deadlines are the same bytes; the new#[cfg(feature = "ollama")]only dropsReadWaitwhen that feature is off. Editor display strings are not sim state. NoHashMaporder, nofind_path, no GPU readback into the tick.Deferred. none.
The
ReadWaitcfg matches the only-D warningserror on that Windows log, and the road icon literals matchicon()(U+1F6E3 U+FE0F) so the un-ignored tests compare the same in-memory strings theDisplayimpl writes. Two problems still keep this from being a sound gate: the Windows summary step, andcoverage.ymlreplacing a finished tarpaulin report with two workspace llvm-cov runs whose summary cannot be published.permissions: contents: readis still missing on both workflows; Scorecard already flagged the unpinned actions.CODECOV_TOKENwas empty on that coverage run. No new crate, no new model URL,forbid(unsafe_code)stays.Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| - 'astraweave-llm/**' | ||
| - '.github/workflows/aw-editor-tests.yml' | ||
| schedule: | ||
| # Not on pull_request. These editor test legs are optional and must not |
There was a problem hiding this comment.
This comment still calls the legs optional. continue-on-error is gone, so a failed step fails the workflow on push, the 06:35 cron, and workflow_dispatch.
It still does not run on pull_request (test_heavy_tier_is_not_on_pull_request requires that), and docs/current/CI_ARCHITECTURE.md still leaves it out of the required set. A red run does not block a merge. The new step summary calls this a blocking gate; the accurate sentence is a fail-closed workflow, in the style of the header on allocation-measurement.yml.
Push paths also omit most crates aw_editor links (render, ecs, terrain, physics). The cron is what covers those breaks.
| run: cargo fmt -p aw_editor -- --check | ||
|
|
||
| - name: Clippy (aw_editor) | ||
| run: cargo clippy -p aw_editor --all-features --no-deps -- -D warnings |
There was a problem hiding this comment.
On that Windows job, cargo clippy -p aw_editor --all-features -- -D warnings (no --no-deps) exited 1. The only error was struct ReadWait is never constructed while compiling dependency astraweave-llm. --no-deps stops this step from type-checking that graph.
The new astraweave-llm step covers that one crate, and #[cfg(feature = "ollama")] on ReadWait is the right fix: next_read_wait and bytes_within_deadline are already behind the same feature, and the ollama-on bodies are unchanged. Another path dependency that fails -D warnings will no longer fail this job. Workspace clippy in affected_crates.py already excludes aw_editor and does not pass -D warnings, so this workflow was the only place that lint reached astraweave-llm.
lazyxeon
left a comment
There was a problem hiding this comment.
Clear at 8b71ec7ac5ccf12d97b7ef941ae2178376118473.
TL;DR evidence (Linux box)
- Workflows / Vote 3:
aw-editor-tests.ymlhas nocontinue-on-errorleft (job-level or step-level), so fmt, clippy-D warnings, build, unit and integration steps all fail the job now.coverage.ymlkeeps job-levelcontinue-on-error: true. Neither one is onpull_request(heavy tier is unchanged). Running/tmp/actionlinton both files: exit 0.test_workflow_policy.py: 16/16 OK, and that includes the 3 new tests. - Renames (#585-style check): the workflow
name:s (AW Editor Tests,Code Coverage) are unchanged, so theworkflow_runlist innightly-failure-issue.yml:14,19still matches. Only the coverage job display name changed, and nothing keys on it (needs:/if:grep is clean). The old in-filecoveragejob in aw-editor-tests was removed and nothing referenced it. Paths now includeastraweave-llm/**, which matches the new llm clippy step. ReadWaitcfg (astraweave-llm/src/lib.rs:141): the only user isnext_read_wait(:155, alreadycfg(feature = "ollama")), and its callers at:227and:1925are ollama-gated too. It's a feature cfg, not a target cfg, so it behaves the same on every OS.cargo clippy -p astraweave-llm --no-deps -D warningsexit 0, both with and without--features ollama.- Nav tests: un-ignored, and the
U+FFFDcorruption in the expected strings is fixed to matchnavigation_panel.rs:55. Both pass. Isolated mutation: dropping U+FE0F from the Road icon at:55makestest_nav_area_type_iconandtest_nav_area_type_displayboth FAIL. Reverted, and the tree is clean. - Gate/tests (
AW_CI_PROFILE=ci-pr,AW_CI_PACKAGES=astraweave-llm,aw_editor):run-gate.shexit 0.run-tests.sh: 10300/10301 passed. The one failure isrender_parity_harness::editor_engine_render_parity(no wgpu adapter on this GPU-less box, and the file isn't touched by the PR).cargo fmt -p aw_editor --checkandcargo clippy -p aw_editor --all-features --no-deps -D warningsexit 0.aw_editor --libwitheditor-full: 4049/4049. - AGENTS.md report: accurate. It discloses that the full aw_editor matrix didn't run because of the Tracy C++ link failure. I hit the same failure on
--all-featurestest linking here (tracy-client-sys, libc++ vs libstdc++), which is box-only. - Bot comments: the 2 Scorecard Pinned-Dependencies alerts (
actions/checkout@v5,taiki-e/install-action@cargo-llvm-cov) follow the existing repo convention (same refs ineditor-ci.yml:42andrust-ci-setup). Non-blocking. Codex review was still running when I checked, and there are no cursor[bot] comments.
Not run here: the Windows and macOS legs of aw-editor-tests, the --all-features unit-test link (Tracy), the GPU parity test, and workspace cargo llvm-cov.
Non-blocking notes
- This workflow isn't on
pull_request, so this PR's CI never exercises the newly fail-closed job. The first real run is post-merge on main or the 06:35 schedule. Suggest aworkflow_dispatchon this branch before merge so a red Windows or macOS leg doesn't land as red main. - Coverage apt list (
coverage.yml) omits the xkbcommon/wayland/xcb packages that the editor job installs. That's harmless while it's non-blocking, but--workspace --libmay stay red until they're added.
lazyxeon
left a comment
There was a problem hiding this comment.
Clear at a062c984c4746432b0eaefe41e6ce2c7d4a60a00.
Correction on my 8b71ec7 review: I didn't flag ${{ github.step_summary }} in coverage.yml, because actionlint passed and I took that as enough. Here's why it passed. actionlint 1.7.12 checks the expression, and step_summary is a typed property in its built-in github context (a bogus property such as github.nonexistent_ctx in the same spot fails with [expression]). There's no env or shell gap. I disagree with the #602 high, though: editor-ci.yml:95 on main has used the same expression since #223, and its Append coverage summary step succeeded in today's scheduled run (41016750374). So it doesn't fail workflow validation. It's just undocumented, and moving to the env var is still the right fix.
TL;DR evidence
- Fix:
coverage.yml:59now usesopen(os.environ["GITHUB_STEP_SUMMARY"], ...)withosimported. I pulled the step's Python out of the YAML and ran it with no summary JSON and with a sample one. Both exit 0 and write the expected markdown. - Context scan: the only
${{ }}left in both workflows aregithub.workflow,github.ref,github.event_name,matrix.osandsecrets.CODECOV_TOKEN, all valid. Running/tmp/actionlinton both files: clean. The repo-wide run only reports the existinggpurunner-label warnings in two other workflow files. - #602 mediums: fixed.
test_workflow_policy.pypasses 18/18. Mutation checks, each reverted:continue-on-error: ${{ true }}and'true'on the editor job fail it.- Adding
pull_request_target:fails 2 tests. - Deleting the aw_editor clippy step fails it.
- The list form
on: [push, pull_request]and the other quoting variants are covered by the new helper tests.
- #602 lows: left for later, as intended. These are the floating
taiki-etag, the dropped editor coverage artifact, the g++-14 header note, the llm--no-default-featuresclippy, and thetest_fallback_tier_progressionflake. None of them changed in this push. - Other tests: the diff since 8b71ec7 only touches
coverage.ymland the policy script, with no Rust changes. My earlier gate and test results on Linux still stand.
Not run here: Windows and macOS legs, and workspace cargo llvm-cov (Linux box, no GPU).
Non-blocking follow-up: editor-ci.yml:95 still uses ${{ github.step_summary }}. Switch it to os.environ["GITHUB_STEP_SUMMARY"] for consistency (out of scope here). My earlier suggestion still applies: run a workflow_dispatch of AW Editor Tests on this branch before merge.
There was a problem hiding this comment.
Stale comment
Adversarial review at
a062c984c4746432b0eaefe41e6ce2c7d4a60a00. Not mergeable. The follow-up commit fixes the coverage summary path and locks the command strings #602 named. It does not make the fail-closed editor job safe on Windows.Blocking.
aw-editor-tests.ymlGenerate Test Summary is still a bash redirect, and the workflow never setsshell: bash.windows-latestruns that step under pwsh. Schedule run41016083583, job123932606885, loggedpwsh.EXE. Quoting"$GITHUB_STEP_SUMMARY"is an empty path there ($env:GITHUB_STEP_SUMMARYis the env var),$ErrorActionPreference = 'Stop'fails the redirect, andif: always()fails the job after the tests passed. On that job the unit tests were4047 passed; 0 failed; 2 ignored, the three integration tests passed, and the only clippy error wasReadWait, which the cfg fixes.a062c984cdoes not change this file.Coverage.
os.environ["GITHUB_STEP_SUMMARY"]replaces the emptygithub.step_summarypath. The job still runscargo llvm-cov --workspace --libtwice (noreportsubcommand), on every push tomain, withtimeout-minutes: 120absent from the longer-than-45 table indocs/current/CI_ARCHITECTURE.md, andcontinue-on-error: true. Run41014232005finished the old tarpaulin report in about 11 minutes and uploaded HTML.CODECOV_TOKENwas empty, so that artifact was the retained report. Nopermissions: contents: read.Policy test.
python3 scripts/ci/test_workflow_policy.pyexit 0 (18). The new samples catch'true',"true",${{ true }}, apull_request_target:key, andon: [push, pull_request]. They still miss real booleans${{ always() }},${{ false || true }}, and${{ fromJSON('true') }}, pluson:/- pull_request,on: {pull_request: ...}, andon: [push, pull_request_target](probed, all false). The editor test now requires the--no-depsclippy line and does not requiredefaults.run.shell.Holds.
ReadWaitis private and constructed only fromnext_read_wait, both#[cfg(feature = "ollama")].#![forbid(unsafe_code)]stays. Road isU+1F6E3 U+FE0Finicon()and both asserts;Displaywritesicon + name. No new dependency, no model URL, no sim write.astraweave-llmis not in the replay-hash step.Report. Head
a062c984c. The PR body still names8b71ec7ac. Commands: policy test exit 0. Not run: replay hashes (no hashed crate; expected unchanged), GPU frame budget (not measured). Checks on this SHA were still running. Not green. Not a required pull-request check: the header comment still calls the legs optional, and the summary step calls them a blocking gate.Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| cargo llvm-cov --workspace --lib --summary-only --json --output-path coverage/summary.json | ||
|
|
||
| - name: Generate workspace lcov | ||
| run: cargo llvm-cov --workspace --lib --lcov --output-path coverage/workspace.lcov |
There was a problem hiding this comment.
os.environ["GITHUB_STEP_SUMMARY"] is the right fix for the empty github.step_summary path. This invocation is the problem that remains.
editor-ci.yml runs llvm-cov once, then cargo llvm-cov report for lcov, HTML, and JSON. These two steps are each a full cargo llvm-cov --workspace --lib (no --no-clean, and report is not used), so the workspace lib tests run twice. The workflow is every push to main plus the 06:10 cron, cancel-in-progress is false for push, and timeout-minutes: 120 is not in the longer-than-45 table in docs/current/CI_ARCHITECTURE.md. continue-on-error: true turns a timeout or a failed workspace test into a green job with no report.
The tarpaulin job this replaces finished on run 41014232005 (job 123926797452) in about 11 minutes and uploaded the HTML artifact. CODECOV_TOKEN was empty on that run, so the artifact was the retained report. This workflow drops that artifact and still has no permissions: contents: read on a job that runs taiki-e/install-action and passes CODECOV_TOKEN to codecov-action.
There was a problem hiding this comment.
Stale comment
Correction on the coverage path.
github.step_summaryis a real context: Editor CI run41016750374job123934702062step "Append coverage summary" succeeded with it. The env-var edit is equivalent, not a repair of an empty path. The Windows summary redirect, the double workspace llvm-cov run, and the--no-depslock stand.Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Blocking at fd5d060f73f717381dc2b8db75f81bdedac38b87 (supersedes my clear 5710396224 @ a062c984).
Rebase check: OK. git range-diff 1e6ff89d..a062c984 fba18f5f..fd5d060f: all 3 commits =. In merge fd5d060f, the scripts/ci/test_workflow_policy.py conflict keeps both sides: main's import sys, workflow_display_names, nightly_failure_watched_workflows and test_nightly_failure_issue_serializes_per_upstream_run, plus the branch's has_continue_on_error and bypass tests. python3 scripts/ci/test_workflow_policy.py: 30 tests OK. actionlint: only the pre-existing self-hosted label note, same as main. cargo test -p aw_editor --lib navigation_panel: 80 passed.
Blocker (cursor[bot] 4422261322, posted after my clear and still unaddressed):
.github/workflows/aw-editor-tests.yml:79-87"Generate Test Summary" runs on thewindows-latestleg with the default shell, which is pwsh, because the job has noshell:ordefaults.run.shell. The PR changed>> $GITHUB_STEP_SUMMARYto>> "$GITHUB_STEP_SUMMARY". In pwsh that is an undefined variable quoted to an empty path, so the redirect throws. Withif: always(), the Windows job fails even after fmt, clippy, build and tests pass. On main the unquoted form only discarded the output.- Fix: add
shell: bashto that step (line 80), ordefaults: run: shell: bashon thetestjob, asci.ymldoes. Also add a policy test that requires it.
Non-blocking follow-ups (cursor[bot] 4422261326/4422266715/4422261329):
coverage.yml:40,43runscargo llvm-cov --workspace --libtwice. Run it once, then usecargo llvm-cov report --lcov.coverage.ymlhas nopermissions: contents: read, and the 120-minute timeout isn't listed in CI_ARCHITECTURE.md.- The "Blocking gate" wording in the summary is inaccurate, because this workflow isn't on
pull_request.
Still held for Andrew's manual editor run even after this is fixed. The merge gate is my clear on the new head, cursor[bot], and green CI.
There was a problem hiding this comment.
Stale comment
Adversarial review at
fd5d060f73f717381dc2b8db75f81bdedac38b87. The merge ofmaindoes not change the five-file diff. The earlier "this fails Windows" blocker is withdrawn.Windows summary.
Generate Test Summarystill quotes"$GITHUB_STEP_SUMMARY", and this workflow never setsdefaults.run.shell. Schedule run41016083583job123932606885ran that step underpwsh.EXE. On pwsh 7.5.4, with$ErrorActionPreference = 'Stop', both>> "$GITHUB_STEP_SUMMARY"and the unquoted form exit 0 and write nothing.$env:GITHUB_STEP_SUMMARYis the variable that writes the file. The step stays green and the Windows summary stays blank.ci.ymlalready setsdefaults.run.shell: bash. On that same job, fmt, build, unit tests (4047 passed; 0 failed; 2 ignored), and the three integration binaries passed (5, 6, and 2). The only##[error]was clippyReadWait.ReadWait.
#[cfg(feature = "ollama")]matchesnext_read_wait, which constructs it, andbytes_within_deadlinecalls that function.#![forbid(unsafe_code)]stays. No model-URL edit. The new llm clippy step is the default build, which is the build that failed.Clippy scope.
cargo clippy -p aw_editor --all-features --no-depsis still what the policy test locks.--no-depsskips the path graph that surfacedReadWait.editor-ci.ymlalready uses that flag, and the dedicated llm step covers the crate that failed. Dialogue, nav, render, and the rest of the editor graph are not clippy'd here.Coverage. Two
cargo llvm-cov --workspace --libinvocations, and neither iscargo llvm-cov report.editor-ci.ymlruns the tests once and then reports.timeout-minutes: 120is absent from the longer-than-45 table indocs/current/CI_ARCHITECTURE.md.continue-on-error: truestays, and the policy test requires it. The HTML artifact upload is gone.rust-ci-setupalready installs the xkb, wayland, and xcb packages, so the shorter apt list is not a missing-library break.os.environ["GITHUB_STEP_SUMMARY"]is the right summary path.github.step_summaryis a real context.Policy.
python3 scripts/ci/test_workflow_policy.pyexit 0 (30). The continue-on-error helper still misses${{ always() }},${{ false || true }},${{ fromJSON('true') }},${{ !false }}, and a foldedtrue.has_pull_requeststill misses a sequenceon:/- pull_request, flowon: {pull_request: ...}, andon: [push, pull_request_target]. It does not requireshell: bash.Holds. Road is
U+1F6E3 U+FE0Finicon()and both asserts.Displaywritesicon + name. Those asserts compare Rust strings. The two ignored lib tests in the schedule run are these two. No new dependency. NoCargo.lockchange.astraweave-llmis not in the replay-hash step. No sim write. The push path list now includesastraweave-llm; render, ecs, nav, and dialogue still wait for the 06:35 schedule. The header still says the legs are optional. They fail the workflow when it runs, andCI_ARCHITECTURE.mdstill keeps them offpull_requestand out of the required set.Report
- Head
fd5d060f. Checks on this SHA were queued (determinism-replay41710014964, Comprehensive CI41710015229). Not green.- Commands: policy test exit 0 (30). pwsh 7.5.4 redirect probe exit 0.
- Not run:
cargo test -p astraweave-core --test replay_hashon this SHA (queued in CI; the diff touches no hashed crate). GPU frame budget, not measured.aw_editortests not re-run here.- Measurements: not measured.
- Replay hashes: expected unchanged. On
a062c984c, run41033578455compare succeeded for ubuntu, windows, and macos. The Comprehensive CI failure on that SHA wassteady_over_limit_closes_with_1008(97 replies). That is the net flake#599fixed onmain, and this merge contains it.- Deferred issues: none.
The PR body still names
8b71ec7ac.Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| cargo llvm-cov --workspace --lib --summary-only --json --output-path coverage/summary.json | ||
|
|
||
| - name: Generate workspace lcov | ||
| run: cargo llvm-cov --workspace --lib --lcov --output-path coverage/workspace.lcov |
There was a problem hiding this comment.
This second cargo llvm-cov --workspace --lib runs the instrumented library tests again. The summary step above is already a full run (--summary-only --json). editor-ci.yml does one cargo llvm-cov and then cargo llvm-cov report for lcov, HTML, and JSON.
timeout-minutes: 120 is not in the longer-than-45 table in docs/current/CI_ARCHITECTURE.md (that table stops at the benchmark dashboard). continue-on-error: true on the job means a timeout or a failed export still leaves the workflow green, and test_workspace_coverage_stays_non_blocking requires that flag. The old job uploaded an HTML artifact with 30-day retention. This one does not, so a Codecov upload with fail_ci_if_error: false is the only retained report.
The shorter apt list is not the build break. rust-ci-setup already installs libxkbcommon-dev, wayland, and the xcb packages this file used to repeat. os.environ["GITHUB_STEP_SUMMARY"] on the following step is the right writer. github.step_summary is a real context; Editor CI run 41016750374 job 123934702062 succeeded with it.
lazyxeon
left a comment
There was a problem hiding this comment.
Clear at 56b58eebed87af63ceae83e20bd1d796a64d0382. This resolves my blocking review 5758926780 at fd5d060f.
.github/workflows/aw-editor-tests.yml:81: Generate Test Summary now setsshell: bash, so$GITHUB_STEP_SUMMARYand$(rustc --version)no longer run under pwsh on windows-latest.git diff fd5d060f..56b58eebtouches only that one line plusscripts/ci/test_workflow_policy.py(+26/-1): the newassert_aw_editor_summary_step_uses_bashhelper,test_aw_editor_summary_step_uses_bash, and anAW_EDITOR_TESTSconstant refactor. Nothing else changed.- Negative case: the test strips
shell: bashfrom the text and assertsAssertionError. - Mutation: I deleted
shell: bashfrom the workflow file and the suite went from 31 OK toFAILED (failures=1). After restoring it, the suite is 31 OK. /tmp/actionlint: the only findings are the 2 existinggpuself-hosted runner-label warnings in gpu-frame-budget.yml.- cursor[bot]: I read every review and inline comment. There's no cursor[bot] review on this head yet. Its fd5d060 items on coverage.yml:43 (second llvm-cov run) and policy.py:20 (boolean continue-on-error pattern) are unchanged by this push, and I treated them as non-blocking at fd5d060.
The merge gate still needs a cursor[bot] review of this head and green CI. The PR is still held for Andrew's manual editor run.
There was a problem hiding this comment.
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.
Copilot review overview
6 open issues
cargo llvm-cov --workspace --libwill compile (and potentially link) all workspace libraries,… · New PR description says the new gate is for unit + integration tests on Linux/Windows, but the workflow… · New PR description says the new gate is for unit + integration tests on Linux/Windows, but the workflow… · Newaw_editor_test_job()will raise anIndexErrorif the expectedjobs.testheader changes… · New These tests were previously ignored due to Windows emoji encoding/normalization issues (U+FFFD… · New These tests were previously ignored due to Windows emoji encoding/normalization issues (U+FFFD… · New
What changed in this PR
Turns aw-editor-tests.yml into a fail-closed CI gate and expands coverage reporting to workspace-wide cargo llvm-cov, while restoring previously ignored navigation emoji tests and gating an astraweave-llm type behind the ollama feature.
Changes:
- Make
aw-editor-tests.ymlblocking (fmt/clippy/build/unit + selected integration tests) and extend it to includeastraweave-llmclippy withoutollama. - Expand
coverage.ymlfrom a single-crate tarpaulin run to workspace-widecargo llvm-cov(still non-blocking) with a JSON-backed summary. - Re-enable two navigation emoji unit tests and gate
ReadWaitbehind#[cfg(feature = "ollama")].
| File | Description |
|---|---|
| tools/aw_editor/src/panels/navigation_panel.rs | Re-enables emoji assertions for NavAreaType Display/icon unit tests. |
| scripts/ci/test_workflow_policy.py | Tightens workflow-policy detection (PR triggers, continue-on-error) and enforces aw-editor-tests.yml gate invariants. |
| astraweave-llm/src/lib.rs | Gates ReadWait behind the ollama feature to keep non-ollama clippy clean. |
| .github/workflows/coverage.yml | Switches from tarpaulin to workspace-wide cargo llvm-cov with Codecov upload and summary. |
| .github/workflows/aw-editor-tests.yml | Converts the editor workflow into a blocking gate and adds astraweave-llm clippy coverage. |
Review effort: Lite
| - name: Install Linux dependencies | ||
| run: | | ||
| cd tools/astraweave-assets | ||
| cargo tarpaulin --out Xml --output-dir coverage --exclude-files 'src/main.rs' --exclude-files 'tests/*' | ||
|
|
||
| sudo apt-get update | ||
| sudo apt-get install -y pkg-config libudev-dev libasound2-dev | ||
|
|
||
| - name: Generate workspace coverage summary | ||
| run: | | ||
| rm -rf coverage | ||
| mkdir -p coverage | ||
| cargo llvm-cov --workspace --lib --summary-only --json --output-path coverage/summary.json | ||
|
|
||
| - name: Generate workspace lcov | ||
| run: cargo llvm-cov --workspace --lib --lcov --output-path coverage/workspace.lcov |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest, macos-latest] |
| - name: Run Unit Tests | ||
| run: cargo test -p aw_editor --lib --all-features -- --nocapture | ||
|
|
||
| - name: Run Integration Tests | ||
| if: runner.os != 'macOS' |
| ai = mutation_ai_job(text) | ||
| for step_name in ("Verify astraweave-ai shard outcomes", "Generate mutation report"): | ||
| block = job_step_block(ai, step_name) | ||
| if "continue-on-error: true" in block: |
| #[test] | ||
| #[ignore = "Windows emoji encoding issue"] | ||
| fn test_nav_area_type_display() { | ||
| assert_eq!(format!("{}", NavAreaType::Walkable), "🚶 Walkable"); | ||
| assert_eq!(format!("{}", NavAreaType::Road), "�️ Road"); | ||
| assert_eq!(format!("{}", NavAreaType::Road), "🛣️ Road"); | ||
| assert_eq!(format!("{}", NavAreaType::Water), "💧 Water"); |
| #[test] | ||
| #[ignore = "Windows emoji encoding issue"] | ||
| fn test_nav_area_type_icon() { | ||
| assert_eq!(NavAreaType::Walkable.icon(), "🚶"); | ||
| assert_eq!(NavAreaType::Road.icon(), "�️"); | ||
| assert_eq!(NavAreaType::Road.icon(), "🛣️"); | ||
| assert_eq!(NavAreaType::Water.icon(), "💧"); |
There was a problem hiding this comment.
Head 56b58eebed87af63ceae83e20bd1d796a64d0382. Not green. Required checks on this SHA are queued, including determinism-replay 41712050653 and Comprehensive CI 41712050710. aw-editor-tests.yml and coverage.yml do not run on pull_request, so this SHA does not execute the workflows under review.
Commands. python3 scripts/ci/test_workflow_policy.py exit 0 (31). A probe against assert_aw_editor_summary_step_uses_bash and has_pull_request exit 0 and is the evidence for the two inlines.
Not run. cargo test -p astraweave-core --test replay_hash (no hashed crate in the diff; the CI job is queued). GPU frame budget, not measured. aw_editor tests not rebuilt here.
Measurements. not measured.
Replay hashes. expected unchanged. ReadWait's only constructor is next_read_wait; both are #[cfg(feature = "ollama")], and bytes_within_deadline already was. The ollama-on bodies are the same bytes. astraweave-llm and aw_editor are outside the replay-hash step. Road is U+1F6E3 U+FE0F in icon() and in both asserts; Display writes icon() plus name(). Those asserts compare Rust strings. On a062c984c, compare run 41033578455 passed for ubuntu, windows, and macos.
Deferred. none.
shell: bash on Generate Test Summary is the Windows fix. Schedule job 123932606885 used pwsh and wrote no summary; this step no longer uses that shell. ci.yml already uses bash for the same reason. No new dependency, no Cargo.lock change, #![forbid(unsafe_code)] stays, and the model-URL helpers are untouched. No sim write.
The new lock is a substring, so a comment or an echo of shell: bash satisfies it while shell: pwsh is the real shell. has_pull_request is still false for scalar on: pull_request_target and for on: [pull_request_target]. coverage.yml still passes CODECOV_TOKEN into that job. has_continue_on_error is still false for ${{ always() }}, ${{ false || true }}, ${{ fromJSON('true') }}, ${{ !false }}, and a folded true.
Still open from earlier passes: the header calls the legs optional while the summary calls them a blocking gate, and the workflow is off pull_request and out of the required set. --no-deps is still what the policy test locks, so a path dependency other than the dedicated llm step is outside -D warnings. Workspace clippy already excludes aw_editor. Coverage is still two cargo llvm-cov --workspace --lib runs; editor-ci.yml does one run and then cargo llvm-cov report. timeout-minutes: 120 is absent from the longer-than-45 table. The HTML artifact is gone, continue-on-error: true stays, and there is still no permissions: contents: read. The integration leg names three targets; tools/aw_editor/tests/ has 82 rust files. The PR body describes this commit only and does not open with Gate change:.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| def assert_aw_editor_summary_step_uses_bash(text: str) -> None: | ||
| job = aw_editor_test_job(text) | ||
| block = job_step_block(job, "Generate Test Summary") | ||
| if "shell: bash" not in block: |
There was a problem hiding this comment.
This accepts a Windows summary step that still runs under pwsh.
The check is "shell: bash" not in block on the whole step body. Two edits of the current workflow both return without AssertionError:
- Replace the key with
shell: pwshand leave a comment line# shell: bash. - Replace the key with
shell: pwshand addecho "shell: bash"inside the run script.
test_aw_editor_summary_step_uses_bash only deletes the exact four-line sequence if: always() / shell: bash / run: |. Either edit above stays green. On windows-latest the default shell is pwsh, and schedule job 123932606885 showed that shell writes nothing to $GITHUB_STEP_SUMMARY.
Match a shell: mapping whose value is bash, and reject a second shell: in the same step.
| ): | ||
| return True | ||
| if re.search( | ||
| r"(?:^|\[|,)\s*pull_request(?:\s|,|\]|$)", rest |
There was a problem hiding this comment.
This regex misses the event that would schedule the coverage job, which holds CODECOV_TOKEN, on pull requests.
Probed, has_pull_request is false for all of these:
on: pull_request_targeton: [pull_request_target]on: [push, pull_request_target]on:/- pull_requeston: {pull_request: {branches: [main]}}
The key form pull_request_target: is true, and on: pull_request is true. test_workspace_coverage_stays_non_blocking only asserts has_pull_request is false. Any of the forms above keeps that test green while coverage.yml runs on pull_request_target.
Default actions/checkout on that event checks out the base ref, so this does not by itself execute a fork's code. It does run the job that passes CODECOV_TOKEN to codecov-action for an event opened by an untrusted pull request. A later checkout of github.event.pull_request.head.sha would run that head with the token. The same hole applies to aw-editor-tests.yml, which has no secret today.
There was a problem hiding this comment.
Head 56b58eebed87af63ceae83e20bd1d796a64d0382. Not green. Required checks on this SHA are queued, including determinism-replay 41712050653 and Comprehensive CI 41712050710. aw-editor-tests.yml and coverage.yml do not run on pull_request, so this SHA does not execute the workflows under review.
Commands. python3 scripts/ci/test_workflow_policy.py exit 0 (31). A probe against assert_aw_editor_summary_step_uses_bash and has_pull_request exit 0 and is the evidence for the two inlines.
Not run. cargo test -p astraweave-core --test replay_hash (no hashed crate in the diff; the CI job is queued). GPU frame budget, not measured. aw_editor tests not rebuilt here.
Measurements. not measured.
Replay hashes. expected unchanged. ReadWait's only constructor is next_read_wait; both are #[cfg(feature = "ollama")], and bytes_within_deadline already was. The ollama-on bodies are the same bytes. astraweave-llm and aw_editor are outside the replay-hash step. Road is U+1F6E3 U+FE0F in icon() and in both asserts; Display writes icon() plus name(). Those asserts compare Rust strings. On a062c984c, compare run 41033578455 passed for ubuntu, windows, and macos.
Deferred. none.
shell: bash on Generate Test Summary is the Windows fix. Schedule job 123932606885 used pwsh and wrote no summary; this step no longer uses that shell. ci.yml already uses bash for the same reason. No new dependency, no Cargo.lock change, #![forbid(unsafe_code)] stays, and the model-URL helpers are untouched. No sim write.
The new lock is a substring, so a comment or an echo of shell: bash satisfies it while shell: pwsh is the real shell. has_pull_request is still false for scalar on: pull_request_target and for on: [pull_request_target]. coverage.yml still passes CODECOV_TOKEN into that job. has_continue_on_error is still false for ${{ always() }}, ${{ false || true }}, ${{ fromJSON('true') }}, ${{ !false }}, and a folded true.
Still open from earlier passes: the header calls the legs optional while the summary calls them a blocking gate, and the workflow is off pull_request and out of the required set. --no-deps is still what the policy test locks, so a path dependency other than the dedicated llm step is outside -D warnings. Workspace clippy already excludes aw_editor. Coverage is still two cargo llvm-cov --workspace --lib runs; editor-ci.yml does one run and then cargo llvm-cov report. timeout-minutes: 120 is absent from the longer-than-45 table. The HTML artifact is gone, continue-on-error: true stays, and there is still no permissions: contents: read. The integration leg names three targets; tools/aw_editor/tests/ has 82 rust files. The PR body describes this commit only and does not open with Gate change:.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| def assert_aw_editor_summary_step_uses_bash(text: str) -> None: | ||
| job = aw_editor_test_job(text) | ||
| block = job_step_block(job, "Generate Test Summary") | ||
| if "shell: bash" not in block: |
There was a problem hiding this comment.
This accepts a Windows summary step that still runs under pwsh.
The check is "shell: bash" not in block on the whole step body. Two edits of the current workflow both return without AssertionError:
- Replace the key with
shell: pwshand leave a comment line# shell: bash. - Replace the key with
shell: pwshand addecho "shell: bash"inside the run script.
test_aw_editor_summary_step_uses_bash only deletes the exact four-line sequence if: always() / shell: bash / run: |. Either edit above stays green. On windows-latest the default shell is pwsh, and schedule job 123932606885 showed that shell writes nothing to $GITHUB_STEP_SUMMARY.
Match a shell: mapping whose value is bash, and reject a second shell: in the same step.
| ): | ||
| return True | ||
| if re.search( | ||
| r"(?:^|\[|,)\s*pull_request(?:\s|,|\]|$)", rest |
There was a problem hiding this comment.
This regex misses the event that would schedule the coverage job, which holds CODECOV_TOKEN, on pull requests.
Probed, has_pull_request is false for all of these:
on: pull_request_targeton: [pull_request_target]on: [push, pull_request_target]on:/- pull_requeston: {pull_request: {branches: [main]}}
The key form pull_request_target: is true, and on: pull_request is true. test_workspace_coverage_stays_non_blocking only asserts has_pull_request is false. Any of the forms above keeps that test green while coverage.yml runs on pull_request_target.
Default actions/checkout on that event checks out the base ref, so this does not by itself execute a fork's code. It does run the job that passes CODECOV_TOKEN to codecov-action for an event opened by an untrusted pull request. A later checkout of github.event.pull_request.head.sha would run that head with the token. The same hole applies to aw-editor-tests.yml, which has no secret today.
|
Devastation (non-blocking) at head |
56b58ee to
6578b82
Compare
| name: aw-editor-coverage | ||
| continue-on-error: true # Don't fail if codecov upload fails | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v7 |
|
Annubis devastation review: This push is a rebase onto main |
|
Rebased onto Head
Pull-request checks for this head started. Comprehensive CI Pipeline: https://github.com/lazyxeon/AstraWeave/actions/runs/41941214127
|
There was a problem hiding this comment.
Adversarial review at 6578b82b9150d6c34a67a2cc918400ac640b9b09. Not a clearance. Not green. Rebase onto b0a480c8217eb028792e91589735dbadcfca7d2b leaves the five-file change equivalent to 56b58eeb: the open threads still match the current lines, and the probes below still pass.
Report
- Head
6578b82b. Required checks on this SHA are still running. Replay hash jobs in41941214219and41941214869are pending. Audit41941214163and deny41941214163passed.aw-editor-tests.ymlandcoverage.ymldo not run onpull_request, so this SHA does not execute the workflows under review. - Commands:
python3 scripts/ci/test_workflow_policy.pyexit 0 (41). A probe ofhas_pull_request,has_continue_on_error, andassert_aw_editor_summary_step_uses_bashexit 0.cargo 1.89.0test --workspace --libon a two-member workspace (one lib, one bin-only) exit 0 and skips the bin. Codepoints of the Road literals atnavigation_panel.rs:55,:2049, and:2070areU+1F6E3 U+FE0F. - Not run:
cargo test -p astraweave-core --test replay_hash(no hashed crate in the three-dot diff; the CI jobs are pending). GPU frame budget, not measured.aw_editorandastraweave-llmwere not rebuilt here. - Measurements: not measured.
- Replay hashes: expected unchanged. The llm edit is
#[cfg(feature = "ollama")]on privateReadWait. Its only constructor isnext_read_wait(lib.rs:182), and that function plusbytes_within_deadlineare already under the same cfg. The ollama-on bodies are the same bytes.astraweave-llmis not in the Replay hash step (determinism-replay.ymlruns core, combat, weavingreplay_aravath_slice_scenario, causality, scripting, physics, terrain, localsim, aravath_runtime, quests, persistence-ecs). EditorDisplaystrings are not sim state. NoHashMaporder, nofind_path, no GPU readback into the tick.Cargo.lockis unchanged in the three-dot diff. - Deferred issues: none.
What holds
shell: bash on Generate Test Summary (aw-editor-tests.yml:81) is the Windows fix. windows-latest defaults that step to pwsh, and schedule job 123932606885 wrote no summary under pwsh. #![forbid(unsafe_code)] stays at astraweave-llm/src/lib.rs:1. require_kept_model_url / loopback_model_url are untouched. No new crate. The editor reaches llm only as aw_editor → astraweave-dialogue → astraweave-llm with no extra features. Default llm features are llm_cache; ollama is off, which is the build where ReadWait was dead. The new clippy step (aw-editor-tests.yml:63) is that build. The Road asserts compare Rust strings with icon() plus name(), so the console code page does not decide them. Copilot's emoji comment treats those source literals as an encoding bug. They match.
rust-ci-setup already installs libxkbcommon-dev, the xcb packages, libegl1-mesa-dev, libwayland-dev, libasound2-dev, and libudev-dev. The shorter apt list in coverage.yml does not drop those. Copilot's missing-library comment on the workspace llvm-cov step does not match that action.
Cargo 1.89 test --workspace --lib skips a member that has no library. hello_companion does not make cargo llvm-cov --workspace --lib fail for lack of a lib target.
Still open
The new lock is a substring. Reproduced on this tree: replacing shell: bash with shell: pwsh and leaving # shell: bash, or echo "shell: bash" inside the run script, both return from assert_aw_editor_summary_step_uses_bash with no AssertionError. The negative test only deletes the exact four-line sequence (test_workflow_policy.py:706). On windows-latest the default shell is still pwsh, and that shell writes nothing to $GITHUB_STEP_SUMMARY.
has_pull_request is false for on: pull_request_target, on: [pull_request_target], on: [push, pull_request_target], a sequence - pull_request, and on: {pull_request: {branches: [main]}}. The key form pull_request_target: is true. test_heavy_tier_is_not_on_pull_request and test_workspace_coverage_stays_non_blocking only call this helper. coverage.yml:53 still passes CODECOV_TOKEN into codecov-action, and the workflow has no permissions: key. Default checkout on pull_request_target is the base ref. The same hole covers aw-editor-tests.yml, which has no secret today.
has_continue_on_error is false for ${{ always() }}, ${{ false || true }}, ${{ fromJSON('true') }}, ${{ !false }}, ${{ true && true }}, and a >- or | block whose value is true. Any of those on the editor job keeps test_aw_editor_tests_is_a_real_gate_off_prs green. continue-on-error: True is caught.
cargo clippy -p aw_editor --all-features --no-deps (aw-editor-tests.yml:60) is what the policy test locks. --no-deps skips astraweave-dialogue and every other path dependency. The historical Windows failure was llm, which the cfg and the dedicated step cover. A later -D warnings failure in dialogue is outside this job. Workspace clippy already excludes aw_editor and does not pass -D warnings.
coverage.yml:40 and :43 are each a full cargo llvm-cov --workspace --lib. editor-ci.yml runs llvm-cov once and then cargo llvm-cov report. timeout-minutes: 120 is absent from the longer-than-45 table in docs/current/CI_ARCHITECTURE.md (that table ends at the benchmark dashboard). continue-on-error: true stays, and test_workspace_coverage_stays_non_blocking requires it. The HTML artifact is gone. fail_ci_if_error: false leaves Codecov as the only retained report. taiki-e/install-action@cargo-llvm-cov is still a floating third-party action in that job. Scorecard already has the pin thread.
The header at aw-editor-tests.yml:12 still calls the legs optional. The summary at :88 calls them a blocking gate. docs/current/CI_ARCHITECTURE.md keeps this workflow off pull_request and out of the required set. A red run does not block a merge. The integration step names ui_gizmo_smoke, play_mode, and prefab_workflow. tools/aw_editor/tests/ has 84 rust files. Push paths still omit render, ecs, terrain, and physics. The 06:35 cron is what covers those.
The PR body names head 56b58eebe, describes only the summary-shell commit, and calls the change workflow/policy-only. The three-dot diff also edits astraweave-llm and navigation_panel.rs, and it removes continue-on-error from the editor job. The body's first line does not say this is a gate change.
No new dependency. No sim write. The fail-closed editor steps are real when the workflow runs. The tests that are supposed to keep that job fail-closed, off pull requests, and on bash accept the bypasses above.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
6578b82 to
62a6f1c
Compare
Annubis devastation review: This push is a rebase onto main |
There was a problem hiding this comment.
Adversarial review at 62a6f1c99a979b6d87660d5609c9432b58989efc. Not a clearance. Not green.
Rebase onto f4574635e83191f13ab1eb1698cb189cf971e35b (#672). The five-file change matches 6578b82b (aw-editor-tests.yml blob 27693bd706). The open threads still sit on these lines.
Head. 62a6f1c99a979b6d87660d5609c9432b58989efc. Cargo Deny failed on run 42029590708 (RUSTSEC-2026-0441, pin-utils unmaintained). The cargo-audit check passed (job 127252327013). Replay hash 42029590686 and determinism-replay 42029590715 were still running. AW Editor Tests has no pull_request trigger, so this SHA does not execute the editor job.
Commands. python3 scripts/ci/test_workflow_policy.py exit 0 (41). Bypass probe exit 0: a # shell: bash comment and shell: pwsh plus echo "shell: bash" both pass assert_aw_editor_summary_step_uses_bash. has_pull_request is false for scalar and list pull_request_target, a - pull_request sequence, and on: {pull_request: {branches: [main]}}. has_continue_on_error is false for ${{ always() }}, ${{ false || true }}, ${{ fromJSON('true') }}, ${{ !false }}, ${{ true && true }}, and folded true.
Not run. Replay-hash cargo lines: no hashed crate, and determinism-replay.yml and Cargo.lock are outside the diff. GPU frame budget: not measured. Editor clippy and cargo test -p aw_editor: the workflow that runs them does not trigger on this pull request.
Measurements. not measured.
Replay hashes. Not run. Expected unchanged. The llm edit is #[cfg(feature = "ollama")] on ReadWait. next_read_wait and bytes_within_deadline were already under that cfg. astraweave-llm is not a replay-hash crate. The road icon is editor UI text.
Deferred. None filed. pin-utils is Cargo.lock:8134 on this SHA and on the base. This diff did not add it. Do not add a RUSTSEC ignore in this pull request.
Still open.
aw-editor-tests.yml:12calls the legs optional.continue-on-erroris gone, so a failed step fails that workflow on push tomain, the 06:35 cron, andworkflow_dispatch.docs/current/CI_ARCHITECTURE.mdstill lists this file with the push and nightly editor workflows, not with the pull-request checks. The summary step calls the same job a blocking gate. It blocks that workflow. It does not block a merge.:60--no-depsstill drops-D warningsfor the feature-unified graphaw_editor --all-featuresbuilds. Job123932606885failedcargo clippy -p aw_editor --all-features -- -D warningsonReadWaitinastraweave-llm. The cfg on the struct covers that warning. The policy test locks the weaker command.coverage.yml:43runscargo llvm-cov --workspace --liba second time. The summary step above is already a full instrumented run.editor-ci.ymldoes onellvm-covpluscargo llvm-cov report. Timeout 120 is absent from the longer-than-45 table inCI_ARCHITECTURE.md. Job-levelcontinue-on-error: truestays, so a timeout leaves the workflow green.test_workspace_coverage_stays_non_blockingrequires that.test_workflow_policy.py:335accepts anyshell: bashsubstring. The negative test only deletes the four-line sequence. The live step ataw-editor-tests.yml:81does setshell: bash.:212misses thepull_request_targetforms above.coverage.yml:53still passesCODECOV_TOKENto the Codecov step. Today the workflow triggers are push tomain, the cron, andworkflow_dispatch.
Holds.
ReadWaitis constructed only innext_read_wait.#![forbid(unsafe_code)]stays. Model URL helpers are untouched.astraweave-dialoguedepends onastraweave-llmwith no extra features. Default features arellm_cache, so the editor path leavesollamaoff.- Road icon and both asserts are
U+1F6E3 U+FE0F(navigation_panel.rs:55,:2049,:2070).Displaywritesicon(), a space, andname(). The encoding notes on those tests do not match the source. rust-ci-setupalready installs xkb, xcb, egl, wayland, asound, and udev. The coverage apt list installs that subset again. The missing-apt note oncoverage.yml:43does not match.- The integration command is the same three targets as
editor-ci.yml(ui_gizmo_smoke,play_mode,prefab_workflow).tools/aw_editor/tests/has 84 rust files. That was the previous job's command. - No new cargo crate.
taiki-e/install-action@cargo-llvm-covreplacescargo-tarpaulin 0.35.2 --locked.editor-ci.ymlalready uses that action. The pin thread oncoverage.yml:29belongs to scorecard. - The expression-form
continue-on-errorhole above is still true. That thread is already resolved. - The PR body still names
56b58eebe, describes only the summary-shell commit, and calls the change workflow/policy-only. The diff also gatesReadWait, restores the road tests, removes editorcontinue-on-error, and rewrites coverage.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
lazyxeon
left a comment
There was a problem hiding this comment.
Clear at 62a6f1c99a979b6d87660d5609c9432b58989efc (restamp of my clear on 56b58eebed87af63ceae83e20bd1d796a64d0382).
- Head is 4 ahead, 0 behind main
f4574635. Interdiff vs the old PR diff: identical stat (5 files, +207/−157). The only deltas areactions/checkout/upload-artifactrefs from main's Dependabot bumps and context lines intest_workflow_policy.pyfrom main. No PR-logic change. - Open cursor[bot]/Copilot threads: no new ones since my prior clear. The latest are from 11-03, and I covered them there (the summary step's
shell: bash, and the policy test with its negative case). - Cargo Deny RUSTSEC-2026-0441 (
pin-utils): advisory-DB refresh. This branch doesn't touch the lock or deny config, so it's not a PR block. - Andrew still owes: manual
aw-editor-testsdispatch (403 for bots), plus the benchmark_alert shard 10 re-run.
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
The Generate Test Summary step appends to GITHUB_STEP_SUMMARY with bash syntax; pin shell: bash so Windows matrix legs do not default to PowerShell. Lock the requirement in test_workflow_policy.py. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
62a6f1c to
1e98ec7
Compare
|
Rebased onto Old head:
|
Annubis devastation review: This push is a rebase onto main |
lazyxeon
left a comment
There was a problem hiding this comment.
Re-clear (code) at 1e98ec7196a18fc7829eeecdaebc20417f283518. No blocking findings.
- Pure rebase. The diff from the prior clear
62a6f1c9vs merge-basef4574635, compared with this head vsd01720a8, gives byte-identical patches in all 5 files (aw-editor-tests.yml, coverage.yml, astraweave-llm/src/lib.rs, test_workflow_policy.py, navigation_panel.rs). No PR-logic drift. Cargo.lockis not in the PR diff, so the lockfile matches main post-#699 andpin-utilsis absent.- Threads: no new cursor[bot]/Copilot findings since the prior clear. All existing threads predate
62a6f1c9and were addressed in that clear. - Checklist unchanged: policy tests prove the gate, AGENTS.md OK, no determinism/bench/dep impact.
Merge still waits on green CI and cursor[bot] at head.
There was a problem hiding this comment.
Adversarial review at 1e98ec7196a18fc7829eeecdaebc20417f283518. Not a clearance. Not green.
Rebase onto d01720a81c3776efa233ee3fd84d72f1094ac7a7 (#699). The five-file blobs match the previous head (aw-editor-tests.yml 27693bd706). Cargo.lock is not in the three-dot diff. pin-utils is absent on this SHA. No new crate. No RUSTSEC ignore. No hashed crate in the diff.
Still open
aw-editor-tests.yml:12still calls the legs optional.continue-on-erroris gone, so a failed step fails that workflow on push, the 06:35 cron, andworkflow_dispatch. It is not onpull_request, anddocs/current/CI_ARCHITECTURE.mdstill leaves it out of the required set. A red run does not block a merge. Pushpathsstill omit most cratesaw_editorlinks, includingastraweave-dialogue(the crate that depends onastraweave-llmwith no extra features).aw-editor-tests.yml:60--no-depsstill drops path dependencies out of-D warnings. Theastraweave-llmstep and#[cfg(feature = "ollama")]onReadWaitcover that onedead_codewarning.next_read_waitandbytes_within_deadlinewere already behind that feature.#![forbid(unsafe_code)]is unchanged. Model URL helpers are untouched. The editor path isaw_editor→astraweave-dialogue→astraweave-llm, default featurellm_cache,ollamaoff.coverage.yml:43is a second fullcargo llvm-cov --workspace --lib.editor-ci.ymlruns once and thencargo llvm-cov report.timeout-minutes: 120is still absent from the longer-than-45 table.continue-on-error: truestays, andtest_workspace_coverage_stays_non_blockingrequires it. Nopermissions:key.CODECOV_TOKENis still passed tocodecov-action@v5. This file'son:is push tomain, schedule, andworkflow_dispatch, so the token is not handed to a pull request by the workflow as written. The HTML artifact is still gone.test_workflow_policy.py:335still treats"shell: bash"as a substring. Reproduced on this SHA:shell: pwshplus# shell: bash, andshell: pwshplusecho "shell: bash", both passassert_aw_editor_summary_step_uses_bash. Deleting the four-line sequence is the only negative that test runs. The workflow key at line 81 isshell: bash, which is the right Windows fix.test_workflow_policy.py:212has_pull_requestis still false foron: pull_request_target,on: [pull_request_target],on: [push, pull_request_target],on:/- pull_request, andon: {pull_request: {branches: [main]}}. The key formpull_request_target:is true.on: [push, pull_request]is true.test_workflow_policy.py:147has_continue_on_erroris still false for${{ always() }},${{ false || true }},${{ fromJSON('true') }},${{ !false }},${{ true && true }}, and folded>-/|true.Trueand${{ true }}are true. Any of the false forms on the editor job keepstest_aw_editor_tests_is_a_real_gate_off_prsgreen. The earlier thread on this regex was closed; the probe still passes, so the inline below restates it.
Does not match
- Road icon and both asserts are
U+1F6E3 U+FE0F(navigation_panel.rs:55,:2049,:2070). Copilot's encoding comment does not match the file. rust-ci-setupalready installs xkb, xcb, egl, wayland, asound, and udev. Copilot's missing-apt comment oncoverage.ymldoes not match. Scorecard owns the unpinnedtaiki-e/install-action@cargo-llvm-covthread (coverage.yml:29). Removing macOS from the matrix would drop a fail-closed fmt/clippy/build/unit leg. Integration tests stay Linux/Windows, same three targets aseditor-ci.yml.tools/aw_editor/tests/has 84 rust files.
Report
- Head
1e98ec7196a18fc7829eeecdaebc20417f283518. Checks on this SHA were pending, including deny, cargo-audit, and the three replay hash jobs. Not green. python3 scripts/ci/test_workflow_policy.pyexit 0 (41). The bash,has_pull_request, andhas_continue_on_errorprobes above were run in-process against this file.- Not run: sim and render gates,
cargo test -p astraweave-core --test replay_hash, GPU frame budget. No hashed crate changed.astraweave-llmis not a Replay hashcargo test -pline. The edit is a cfg attribute. - Measurements: not measured.
- Replay hashes: not run. Expected unchanged. The cfg does not change the ollama function bodies, and the default build does not construct
ReadWait. - Deferred issues: none.
The PR body still names 56b58eebe, describes only the summary-shell commit, and calls the change workflow/policy-only. The diff also cfg-gates ReadWait, restores the road tests, removes editor continue-on-error, and rewrites coverage.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| return _exec_action_ref_violation_from_source(source) | ||
|
|
||
| CONTINUE_ON_ERROR = re.compile( | ||
| r"continue-on-error\s*:\s*(" |
There was a problem hiding this comment.
This regex still misses a continue-on-error that GitHub will treat as true.
Reproduced on this SHA, has_continue_on_error is false for all of:
continue-on-error: ${{ always() }}continue-on-error: ${{ false || true }}continue-on-error: ${{ fromJSON('true') }}continue-on-error: ${{ !false }}continue-on-error: ${{ true && true }}- a folded
>-or|whose value istrue
True and ${{ true }} are true. test_aw_editor_tests_is_a_real_gate_off_prs only calls assertFalse(has_continue_on_error(text)). Any of the false forms on aw-editor-tests.yml keeps that test green and puts continue-on-error back on the job this PR is trying to make fail-closed.
The same helper is what test_workspace_coverage_stays_non_blocking uses to require the flag on coverage.yml. A form it cannot see fails that test, so coverage is pushed toward the literal true this regex matches. The editor gate is the side that stays open.




Summary
shell: bashon theGenerate Test Summarystep inaw-editor-tests.ymlso Windows matrix legs use Git Bash for$GITHUB_STEP_SUMMARYand$(rustc --version)instead of default PowerShell.test_aw_editor_summary_step_uses_bashinscripts/ci/test_workflow_policy.py(with negative case) so the summary step cannot dropshell: bashsilently.Report
56b58eebe(CI on this SHA not awaited in this run).python3 scripts/ci/test_workflow_policy.py— exit 0 (31 tests).AW_CI_PACKAGES=…sim/render gates, replay hash, GPU frame budget — workflow/policy-only change.