Repository navigation
Description
Important
Link the final implementing PR with Closes #274.
Intermediate rollout PRs should use non-closing references so the task stays open until the policy switch is verified.
What
Replace the Time-specific list of required CI job names in eclipse-score/.eclipsefdn with two stable aggregate checks owned by eclipse-score/time, preserving current validation and merge-queue enforcement.
Context
The configuration PR eclipse-score/.eclipsefdn#242 merged before #261, making QNX merge queue result required before its producer existed on main. Because its workflow uses pull_request_target, changing or rerunning the PR could not publish the new job from the PR branch. The temporary removal of that requirement is an immediate recovery action, not the desired final policy.
The gateway module already requires ci/can_merge and ci_pull_request_target/can_merge, while its workflows own the individual job dependencies. Adopt that ownership model for Time without bundling unrelated toolchain upgrades or changes to the validation scope. For Time, use responsibility-based check names ci/general-validation and ci/qnx-validation rather than copying Gateway's event-based naming.
Acceptance Criteria
- The existing merge-queue rollout in time: Require a merge queue with blocking merge-result CI validation #260 is complete: ci: Prepare merge queue validation for Time #261 is on main, the QNX result appears on a fresh PR run, and the temporary QNX requirement removal has been reversed before this migration proceeds.
- A recorded mapping covers every currently required Time CI check: both Linux builds, both QNX builds via the queue result, component tests, coverage, docs verification/build, formatting, copyright, and both bzlmod checks; none is silently dropped or made advisory.
- Time publishes unique, exactly named
ci/general-validationandci/qnx-validationchecks for both PR admission and merge_group validation; neither aggregate workflow is omitted by path filters. - Aggregate jobs use always() and complete only after their declared blocking dependencies; failures and cancellations block merging, and skips are accepted only where explicitly intended for that event.
- A fork PR can satisfy the admission gates without waiting for advisory QNX environment approval; the blocking trusted gate does not depend on that advisory job.
- On merge_group, QNX builds both x86_64-qnx and arm64-qnx against the merge-group revision, and the trusted gate fails if either build fails, is cancelled, or is unexpectedly skipped.
- Existing required check names remain available throughout the producer rollout; transitional runs do not cancel required legacy runs or collide on artifacts.
- After both aggregate producers are on Time main and fresh PR/merge-group results are verified, the Time ruleset in .eclipsefdn requires only the two stable CI aggregates in addition to inherited ECA; reviews, queue, linear history, timeout, and other protections are unchanged.
- The obsolete individual requirements and temporary duplicate entry points are removed only after the policy switch is confirmed applied.
- Verification evidence covers a same-repository PR, a fork PR, a successful merge group, a failed/cancelled blocking job, an unexpected QNX skip, and an intentional non-queue QNX skip.
- The maintainer documentation records gate ownership, the producer-before-policy deployment order, and the rollback procedure.
How
Target design
Use a pull_request/merge_group orchestrator titled CI / General validation, with a final ci/general-validation check. Use a pull_request_target/merge_group orchestrator titled CI / QNX validation, with a final ci/qnx-validation check. The names describe validation responsibilities; event-specific enforcement remains explicit in workflow conditions. Keep advisory PR QNX separate from the blocking queue dependency graph. Reuse the existing workflow_call implementations where suitable; GitHub needs dependencies cannot span independent workflow runs. Keep existing pinned shared-workflow versions unless a necessary compatibility change is explicitly reviewed.
Do not disable a final result job on merge_group. Preserve the current strict QNX queue-result rule: only successful execution of both queue builds satisfies enforcement. Do not use synthetic green statuses or bypass branch policy to bootstrap the migration.
Dependency-ordered rollout
Record the main SHAs of both repositories and the live required-check list before implementation. Each slice has a focused validation, a scoped diff review, committer review, and an approved merge before the next dependent slice. Review stops are required after every slice; live policy changes must not be batched across those stops.
| Slice | Change | Verification gate / pass condition |
|---|---|---|
| 0. Finish recovery | Complete #260/#261 and restore the existing QNX requirement after a fresh result is available. | Read the applied rules and a fresh PR result; the unavailable-check deadlock is gone and QNX queue enforcement is restored. |
| 1. Introduce producers | Add the two orchestrators/aggregate jobs in Time, preserving legacy entry points and exact check contexts. Brief parallel legacy/new runs are acceptable during migration; use separate concurrency/artifact namespaces where needed. | Run the workflow linter used by the repository and focused aggregate-condition tests. Existing required checks still report, the candidate aggregates cover the mapped dependencies, and failures/cancellations/unexpected mandatory skips cannot become green. Trusted pull_request_target producers are not made required before they reach main. |
| 2. Prove availability | After slice 1 reaches main, run fresh same-repository/fork PR checks and a merge-group validation. | Both exact aggregate names are available; PR admission is independent of advisory QNX approval; both QNX queue architectures run and gate the merge-group revision. Capture controlled negative-case evidence without merging a deliberately broken change. |
| 3. Switch policy | In .eclipsefdn, replace the Time-specific individual list with the two aggregate names, preserving inherited requirements and queue/review settings. | Validate the config and Otterdog preview; after application, inspect the effective rules and verify normal queue entry/merge plus rejection of a failed aggregate. |
| 4. Remove transition code | Remove only duplicate legacy entry points that are no longer required and document the resulting ownership. | Run workflow lint and the established required CI suite, then verify one end-to-end merge-queue run with no missing checks or unintended duplicate runs. |
Rollback
Retain the captured individual-check list and working legacy producers until the new policy is verified. If the policy switch fails, restore the captured individual requirements through .eclipsefdn and confirm application before changing or removing any producers. If cleanup causes a regression, restore the known-good producers first; never require a check that is not already available on main.
References
- Rollout incident: Enable merge queue for Time .eclipsefdn#242 and ci: Prepare merge queue validation for Time #261
- Gateway policy: https://github.com/eclipse-score/.eclipsefdn/blob/1397626/otterdog/eclipse-score.jsonnet#L1384
- Gateway ordinary CI: https://github.com/eclipse-score/inc_someip_gateway/blob/main/.github/workflows/ci.yml
- Gateway trusted CI: https://github.com/eclipse-score/inc_someip_gateway/blob/main/.github/workflows/ci_pull_request_target.yml
- Shared QNX workflow currently pinned by Time: https://github.com/eclipse-score/cicd-workflows/blob/8d80e8df150cae21d53cbc8031d0f970648f7a67/.github/workflows/qnx-build.yml
- GitHub merge queues: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue
- pull_request_target semantics: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
- S-CORE verification process: https://eclipse-score.github.io/process_description/main/process_areas/verification/
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
fix: Unblock Time merge queue rollout (#243)
ci: Add stable aggregate validation gates
ci: Add stable aggregate validation gates
ci: Add stable aggregate validation gates
ci: Add stable aggregate validation gates
lavrovvalera commentedon Nov 24, 2026
QNX workflow update needed for SDP 8.0.5 (from #351)
The QNX workflow pin needs a compatibility change, which this ticket's "keep existing pinned shared-workflow versions unless a necessary compatibility change is explicitly reviewed" covers.
Problem:
score_bazel_cpp_toolchains1.1.x downloads QNX SDP 8.0.5 from the privateeclipse-score/qnx_sdp_pkgGitHub release, which needs a GitHub token. The currently pinnedcicd-workflowsqnx-build.yml@8d80e8donly provides qnx.com credentials, so 8.0.5 fails withHTTP 404(https://github.com/eclipse-score/time/actions/runs/45356608390). #351 therefore stays on 8.0.4; the switch is tracked in #354.Needed in the CI workflow change:
.github/workflows/build-qnx.yml(PR/advisory and merge-queue) tocicd-workflowsqnx-build.yml@f606cc0c3fccd3e85dcc6d112f3f1f9aed7efdb8or later, and passqnx-sdp-github-token: ${{ secrets.SCORE_BOT_QNX_PKG_PAT }}. That version is backward compatible: the token is optional and qnx.com credentials remain supported, so it can land while Time is still on 8.0.4. It also disables repository/external cache save/restore so the proprietary SDP never enters the Actions cache.SCORE_BOT_QNX_PKG_PAT(or an equivalent secret) is available toeclipse-score/timewith read access toeclipse-score/qnx_sdp_pkg..github/workflows/cache_maintenance.yml, drop the QNX variants from the generic fetch job, or give it the token. The QNX warm-up job callingbuild-qnx.ymlalready covers QNX.mainbefore Improvement: Switch QNX builds to SDP 8.0.5 #354. Because the QNX job usespull_request_target, a PR cannot validate its own QNX workflow change; use aworkflow_dispatchofCache maintenanceon the branch, or the merge queue, as evidence.Related to slice 0 (QNX queue enforcement): #122 was merged although its QNX merge-queue build failed (https://github.com/eclipse-score/time/actions/runs/45161248341: CIT
python_tc_venvhad no QNX Python toolchain). This confirms that the QNX queue result is not currently enforced, and every PR's QNX check stayed red afterwards. #351 contains the fix (the venv is Linux-only viatarget_compatible_with).