Skip to content

ci(sync): skip upstream-sync heads on shared X99 (CHE-2887) [squash] - #250

Merged
congvc-dev merged 2 commits into
mainfrom
agent/x99-codex-sol/che-2887-2e538ee67351
Nov 8, 2026
Merged

congvc-dev merged 2 commits into
mainfrom
agent/x99-codex-sol/che-2887-2e538ee67351

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Status

Draft candidate 02cde4556336c99d62353ce77369833b557cc0c8 for CHE-2887. This revision resolves the conflict with main at a14514a4508c366344c367aa39f672454de9c38f. Independent review and CI on the new head are pending.

The independent PASS and decision 6e39336c-e509-41c8-9422-b91dc63e1a75 cover only old head 589a0a46493151592d1584c98291e6a38518e60c. Neither the review nor the Python 3.12 push-check waiver carries to this candidate.

Conditions

No runner registration, branch protection or secret changes. No force-push, no paid runners. Agents do not merge; Cheese merges.

Change

Sync heads could schedule jobs on shared X99. Add the existing host-agent predicate to every unguarded active X99 job in ci.yml and whats-new.yml.

The conflict resolution preserves the Python matrix and aggregate result check merged by PR #244. It also preserves main-only push triggers, both test suites, their timeouts, and runner selectors. The aggregate check keeps always() so it still reports unsuccessful matrix results.

Predicate G uses the PR head ref or the push/manual ref. It excludes sync heads and fork PRs:

${{ !startsWith(github.head_ref || github.ref_name, 'upstream-sync/') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}

Predicate A preserves aggregate result handling and applies G:

${{ always() && !startsWith(github.head_ref || github.ref_name, 'upstream-sync/') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}

Isolation table from all four workflow files at the candidate head:

Workflow Job X99 runner labels Sync-head predicate Local result
ci.yml python-tests (deterministic/reverse matrix) self-hosted, Linux, X64, cheese-x99 G, added Guard check passes
ci.yml python-quality (aggregate) self-hosted, Linux, X64, cheese-x99 A, added Guard and result-handling checks pass
ci.yml frontend self-hosted, Linux, X64, cheese-x99, cheese-x99-browser G, added Guard check passes
ci.yml package self-hosted, Linux, X64, cheese-x99 G, added Guard check passes
whats-new.yml entry self-hosted, Linux, X64, cheese-x99 G, added Guard check passes
host-agent.yml core self-hosted, cheese-x99 G, existing Guard check passes
host-agent.yml gateway self-hosted, cheese-x99 G, existing Guard check passes
preview-controller.yml preview-controller group artemis-preview-controller; labels self-hosted, cheese-x99, cheese-x99-artemis-preview ${{ false }}, existing Disabled

The audit covers eight job definitions, including one two-leg matrix. There are no reusable-workflow calls. CI and What's New retain their existing ubuntu-latest fallback outside cheese-work. Workflow trigger filters remain separate from job predicates; CI push events run only on main.

Evidence

Observed test-first conflict correction on X99, 02 November 2026 ICT:

  1. Merge parents: old candidate 589a0a46493151592d1584c98291e6a38518e60c and main a14514a4508c366344c367aa39f672454de9c38f.
  2. Resolve the structural conflict to the main Python job layout. Update the regression expectations before adding guards to the two Python jobs.
  3. Run python3 .github/tests/test_runner_routing.py. Exit 1; the two unguarded Python jobs fail:
FAIL: test_shared_x99_jobs_skip_upstream_sync_heads ... (workflow='ci.yml', job='python-tests')
FAIL: test_shared_x99_jobs_skip_upstream_sync_heads ... (workflow='ci.yml', job='python-quality')
Ran 5 tests in 0.005s
FAILED (failures=2)
  1. Add G to python-tests and A to python-quality. Run the same command. Exit 0:
.....
----------------------------------------------------------------------
Ran 5 tests in 0.003s

OK

Workflow policy verification:

PYTHONDONTWRITEBYTECODE=1 python3 -m pytest tests/unit/test_workflow_runner_policy.py --noconftest -o addopts='' -p no:cacheprovider -q
............                                                             [100%]
12 passed in 0.33s

The targeted policy suite checks fork exclusion, runner labels, main-only pushes, matrix budgets, and aggregate failure handling. It verifies that the aggregate rejects failure, cancelled, skipped, and empty results. Repository conftest loading was disabled for this isolated configuration test.

Ruff 0.15.2 lint and format checks pass for the changed routing test. git diff --check passes. Self-review covered the complete diff against the new base, scope, error paths, and secrets. Only two workflows and the routing regression differ from the current base. No live sync execution, full application test run, or CI-isolation receipt is claimed.

Original test-first evidence remains recorded on the issue. On 01 November 2026 ICT, four missing-job subtests failed before the original guards were added. Then all five routing tests passed. That historical evidence does not replace the new-head checks or review.

Part of CHE-2882

CHE-2882 owns the wider CI-isolation receipt and post-merge verification.

Closes CHE-2887

@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review November 1, 2026 15:30
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as draft November 2, 2026 09:23
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review November 3, 2026 22:01
@congvc-dev
congvc-dev merged commit fa7b4ad into main Nov 8, 2026
6 checks passed
@congvc-dev
congvc-dev deleted the agent/x99-codex-sol/che-2887-2e538ee67351 branch November 8, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant