Skip to content

[ci-failure-sweep] Fix red CI: CI / Check / Clippy / Test / Await the test build and nextest shards - #9784

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25210-52ee1075
Nov 16, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25210-52ee1075

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-25210 — [ci-failure-sweep] Fix red CI: CI / Check / Clippy / Test / Await the test build and nextest shards

Description

This task was filed automatically from a host-side sweep of this repository's GitHub Actions runs. Every CI query ran on the host before this task existed, so the evidence below is the authoritative record for the named run and job. Where the granted read-only github.run.logs / github.run.view tools are available, they may be used to read more of that run or job.

Failure

  • Workflow: CI
  • Failing job: Check / Clippy / Test
  • Failing step: Await the test build and nextest shards
  • Commit the runner actually checked out: e4e6ef11bbe76f0ddc02caa9d85802bcc0c62dc7
  • Runner OS: linux (runner labels ubuntu-latest); tagged os:linux so only a host of that OS admits it
  • Normalized error signature (the dedupe identity, not a quote): orbit-dependency-evidence:{"dependencies": [{"conclusion": "failure", "job_id": <n>, "job_name": "test partition <n>", "status": "completed", "step": null}], "execution_contract": "isolated-source-v1"…
  • Repository: constellation-works/orbit
  • Release branch as GitHub reports it: agent-main
  • Evidence collected at: 2026-11-16T03:45:26.546751277+00:00

Runs exhibiting this failure

Three commits are routinely conflated and are kept apart here: the SHA the workflow event reported, the SHA the ref points at now, and the commit the runner actually checked out. A pull-request merge SHA is not a pull-request head SHA.

Failed-step log excerpt

2026-11-16T03:40:18.6252134Z ##[group]Run import hashlib
2026-11-16T03:41:12.4825646Z ci-await: Test partition 12 concluded failure: https://github.com/constellation-works/orbit/actions/runs/43798882679/job/133075754041
2026-11-16T03:41:12.4827155Z ci-await: Test build succeeded started=2026-11-16T03:35:24Z completed=2026-11-16T03:39:03Z elapsed_s=219
2026-11-16T03:41:12.4828342Z ci-await: CI QA guardrails succeeded started=2026-11-16T03:35:25Z completed=2026-11-16T03:38:38Z elapsed_s=193
2026-11-16T03:41:12.4830082Z ci-await: CI guardrails succeeded started=2026-11-16T03:35:25Z completed=2026-11-16T03:40:40Z elapsed_s=315
2026-11-16T03:41:12.4831529Z ci-await: Test shard 3/3 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:40:55Z elapsed_s=110
2026-11-16T03:41:12.4832723Z ci-await: Test shard 1/3 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:40:59Z elapsed_s=114
2026-11-16T03:41:12.4833891Z ci-await: Test partition 2 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:40:57Z elapsed_s=112
2026-11-16T03:41:12.4835146Z ci-await: Test shard 2/3 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:41:03Z elapsed_s=118
2026-11-16T03:41:12.4836369Z ci-await: Test partition 7 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:41:03Z elapsed_s=118
2026-11-16T03:41:12.4837593Z ci-await: Test partition 8 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:41:01Z elapsed_s=116
2026-11-16T03:41:12.4839916Z ci-await: Test extra partition succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:41:08Z elapsed_s=123
2026-11-16T03:41:12.4841659Z ci-await: Test partition 10 succeeded started=2026-11-16T03:39:05Z completed=2026-11-16T03:41:07Z elapsed_s=122
2026-11-16T03:41:12.4844828Z orbit-dependency-evidence:{"dependencies": [{"conclusion": "failure", "job_id": 133075754041, "job_name": "Test partition 12", "status": "completed", "step": null}], "execution_contract": "isolated-source-v1", "execution_sha": "e4e6ef11bbe76f0ddc02caa9d85802bcc0c62dc7", "head_sha": "e4e6ef11bbe76f0ddc02caa9d85802bcc0c62dc7", "kind": "dependency_failed", "producer_sha": "e4e6ef11bbe76f0ddc02caa9d85802bcc0c62dc7", "repository": "constellation-works/orbit", "run_attempt": 1, "run_id": 43798882679, "schema_version": 1, "source": {"job_id": 133074607505, "job_key": "ci", "job_name": "Check / Clippy / Test", "step_name": "Await the test build and nextest shards", "step_number": 13}, "workflow_ref": "constellation-works/orbit/.github/workflows/ci.yml@refs/heads/agent-main"}
2026-11-16T03:41:12.4847823Z ci-await-api: listings=14 not_modified=5 paginated=false
2026-11-16T03:41:12.4924979Z ##[error]Process completed with exit code 1.

The collection display was truncated. Selected evidence is used for diagnosis; its retention limits are independent of that display.

The run-scoped failed-step log came back empty, so this excerpt is the evidence from job Check / Clippy / Test (id 133074607505), read from the job log API.

Stale or superseded runs of this workflow

These are already excluded from the failure above. They are listed so the repair is not attributed to a run that no longer reflects the current head.

Collection bounds

Reported so "no more failures" is never mistaken for "we stopped looking".

{
  "refs_scanned": 3,
  "runs_listed": 100,
  "max_runs": 100,
  "pull_requests_scanned": 2,
  "max_pull_requests": 10,
  "current_failures_discovered": 2,
  "current_failures_investigation_attempted": 3,
  "current_failures_investigated": 2,
  "inconclusive": 0,
  "log_max_bytes": 16384,
  "job_log_reads": 2,
  "max_job_log_reads": 6,
  "checkout_log_reads": 1,
  "max_checkout_log_reads": 3,
  "retired_refs": [],
  "closed_pull_request_refs": [],
  "cancellation_annotation_reads": 0,
  "max_cancellation_annotation_reads": 12,
  "unverified_refs": [],
  "max_retired_ref_probes": 20,
  "investigation_cursor": 498555,
  "pending_supersession_window_minutes": 30,
  "notes": [
    "repository-wide workflow runs were listed at the cap (100); a workflow whose latest run is older than the newest 100 runs in this repository may be absent entirely",
    "2 current failure(s) are held in pending_supersession because a newer push run of the same workflow on the same branch is still running at a descendant commit and the failure has not reproduced on a previous completed run; each is filed once it reproduces or after 30 minutes"
  ]
}

How to finish

Reproduce the failure at the current repository head using the exact command or the narrowest faithful local equivalent, fix the repository-owned cause, and rerun that command. Do not disable a workflow, weaken an assertion or lint level, add a broad allow rule, or mark a failing gate non-blocking. Then run the repository's documented pre-handoff gate. Verification happens on this task's own pull request: CI runs there normally, and if the failure is still current the next sweep will see it again.

Attribute the regression

Identify the task whose landed change introduced this failure and record it on this task. Start from the commit the runner checked out and walk back to the newest commit at which the failing command last passed; the commit that broke it is the culprit. The commit the runner checked out is often a later bystander, not the culprit. Read the task ID from the culprit commit — squash-merge subjects carry it as [<task-id>] — and confirm from that commit's diff that its change is the one at fault, not a later commit that merely touched the same file. Then set the relation with orbit tool run orbit.task.update --input '{"id":"<this task ID>","relations":[<existing relations from orbit.task.show>,{"type":"regression_from","target":"<culprit task ID>","regression":{"nature":"<nature>","escape":"<escape>","severity":"<severity>"}}]}' — relations replaces the whole list, so carry the existing entries forward. In claimed execution, where orbit.task.update is unavailable, return "regression_from":["<culprit task ID>"] in your output instead and name the culprit commit, nature, escape and severity in the execution summary; the owner checks the target and records the relation when it accepts the handoff. When the culprit commit carries no task ID, or the failure is infrastructure rather than repository-owned, record that conclusion and its evidence in the execution summary instead of blaming a bystander task.

Choose unclassified rather than guess. nature is what kind of regression the link records:

  • broke_existing: the culprit broke behavior that worked before it landed.
  • defect_in_new: the defect is in code the culprit itself introduced.
  • incomplete: the culprit shipped without part of what its task required.
  • merge_reintroduced: a merge restored code or assets an earlier change had removed.
  • contract_drift: docs, schemas or a contract drifted from the behavior the culprit shipped.
  • unclassified: the evidence does not settle the nature.

escape is why the delivery gates missed it:

  • no_test: no test covered the broken behavior.
  • test_not_selected: a covering test existed but the delivery's gates did not run it.
  • platform_only: it shows only on a platform or host the gates did not exercise.
  • review_missed: it was visible in the diff and review did not flag it.
  • spec_ambiguous: the task or spec left the expected behavior open to the shipped reading.
  • nondeterministic: it depends on timing, ordering or environment and passed when gated.
  • unclassified: the evidence does not settle the escape.

severity is how much the defect matters, on the one scale findings and regression links share; a new link without it is refused. Rate the worst real impact the evidence shows, not the size of the fix, and take the lower level when torn:

  • critical: data loss or corruption, a security hole, every drain halted, or silently wrong results (a migration drops task history).
  • high: a core workflow broken with no workaround (every ui delivery fails at handoff).
  • medium: a feature broken or wrong in a real path, with a workaround (--json drops a field the plain output shows).
  • low: an edge case, a misleading message or a minor UX defect (an error names the wrong flag).
  • nit: wording or doc drift, cosmetic, no behavior impact (a stale sentence in a reference doc).

Acceptance Criteria

  • The root cause of the CI failure recorded below is fixed in this repository; the workflow, assertion, or lint level is not disabled, weakened, or made non-blocking to obtain green.
  • The exact command or narrowest faithful local equivalent that failed on the runner is reproduced and then passes locally.
  • The repository's documented pre-handoff gate passes.
  • The task whose landed commit introduced the failure is recorded as this task's regression_from relation, or, in claimed execution, returned in the implementer output's regression_from field for the owner to record when it accepts the handoff, with the culprit commit named in the execution summary. Otherwise the execution summary states why no task can be held responsible (no task ID on the culprit commit, or the failure is infrastructure rather than repository-owned).
  • If the failure turns out to be infrastructure rather than repository-owned, the execution summary cites concrete evidence for that (a same-commit retry that succeeded, or runner/service fault output) rather than a single non-reproduction.

Execution Summary

Click to expand

Fixed flaky CI failure in Test partition 12: orbit-web::http_api events::change_stream_notices_other_process_writes_and_resumes_after_reconnect failed at events.rs:163 with run notice task_id null vs expected task id (CI run 43798882679, job 133075754041, checked-out e4e6ef1). Root cause: test helper drain_run seeded the run with input None via seed_run/save_run, then saved again with task_id; a 75ms change-stream scan between the two saves emitted a run notice with task_id null, which await_notice matched. Fix: drain_run now builds the JobRun with input set and saves once. Culprit: helper introduced in e66ecc6 [ORB-19621]; failing head e4e6ef1 [ORB-25187] only touched dashboard JS and is a bystander. Regression: nature=defect_in_new, escape=nondeterministic, severity=low. Validation: cargo nextest run -p orbit-web --test http_api events::change_stream_notices_other_process_writes_and_resumes_after_reconnect passed before-fix once (flake, non-deterministic) and passed after fix; make ci-guards passed; cargo fmt --all -- --check passed; clippy -p orbit-web --lib --bins and --all-targets passed; cargo doc -p orbit-web passed; git diff --check clean. Pipeline final_validation commands: not_run (pipeline final validation). Diff: crates/orbit-web/tests/http_api/events.rs only.

Validation

  • Not reported

Branch Freshness

  • Base ref: refs/remotes/origin/agent-main
  • Head ref: orbit/ORB-25210-52ee1075
  • Behind base: 0
  • Ahead of base: 1

[ci-failure-sweep] Fix red CI: CI / Check / Clippy / Test / Await the test build and nextest shards

Fixed flaky CI failure in Test partition 12: orbit-web::http_api events::change_stream_notices_other_process_writes_and_resumes_after_reconnect failed at events.rs:163 with run notice task_id null vs expected task id (CI run 43798882679, job 133075754041, checked-out e4e6ef1). Root cause: test helper drain_run seeded the run with input None via seed_run/save_run, then saved again with task_id; a 75ms change-stream scan between the two saves emitted a run notice with task_id null, which await_notice matched. Fix: drain_run now builds the JobRun with input set and saves once. Culprit: helper introduced in e66ecc6 [ORB-19621]; failing head e4e6ef1 [ORB-25187] only touched dashboard JS and is a bystander. Regression: nature=defect_in_new, escape=nondeterministic, severity=low. Validation: cargo nextest run -p orbit-web --test http_api events::change_stream_notices_other_process_writes_and_resumes_after_reconnect passed before-fix once (flake, non-deterministic) and passed after fix; make ci-guards passed; cargo fmt --all -- --check passed; clippy -p orbit-web --lib --bins and --all-targets passed; cargo doc -p orbit-web passed; git diff --check clean. Pipeline final_validation commands: not_run (pipeline final validation). Diff: crates/orbit-web/tests/http_api/events.rs only.

Orbit-Task: ORB-25210
Fixes: e66ecc6 ("feat: Dashboard change stream: push workspace change events over SSE so… [ORB-19621] (#6829)")
Regression-From: ORB-19621
Regression: defect_in_new; escape=nondeterministic; severity=low
@orbit-agent-01 orbit-agent-01 added the orbit orbit related label Nov 16, 2026
@orbit-agent-01
orbit-agent-01 merged commit cc04180 into agent-main Nov 16, 2026
19 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-25210-52ee1075 branch November 16, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant