Skip to content

time: Require a merge queue with blocking merge-result CI validation #260

Closed

Description

@lavrovvalera

Important

Link the implementing PR(s) to this issue by including Closes #260 in the PR description; use Refs for preparatory PRs and close this issue only after repository-policy rollout and validation are complete.

What

Implement the team's decision to require a GitHub merge queue for eclipse-score/time so that changes reach main only after the required CI checks pass on the combined merge result.

Background and findings

Repository configuration and workflows inspected on 2026-10-20:

Repository Enforced policy CI pattern / lesson for Time
Lifecycle Required queue on main; squash merge; linear history; required Ready to merge check in addition to Eclipse ECA. on-pr.yml handles both pull_request and merge_group: checks_requested, with a final aggregate check covering builds/tests and documentation. PR-only jobs are explicitly distinguished. This is the closest reference for Time.
Persistency Required queue on main; squash merge; linear history. on-pr.yml handles pull_request, pull_request_target, and merge_group. Its live ruleset currently requires only ECA: queue enablement alone must not be mistaken for enforcing build/test results.
Communication Required queue on main; merge commits; explicitly required build/test, QNX, sanitizer, linter and review-checklist checks. Demonstrates requiring individual checks instead of an aggregate check. Its 120-minute timeout differs from Lifecycle/Persistency's 60 minutes; do not copy settings without checking Time's runtime and linear-history constraints.

Lifecycle and Persistency currently use ALLGREEN, a maximum of five entries to build/merge, a minimum of one entry to merge, and a five-minute minimum-group wait setting. These are observed reference settings, not an additional team decision for Time.

Time's active main ruleset currently has no merge-queue rule and requires only eclipsefdn/eca; it already requires one approval, code-owner review, stale-review dismissal and linear history. Several existing workflows already handle merge_group (including Linux/QNX builds, component tests, documentation, clang-tidy and sanitizers), so this is an audit and completion task, not a blanket addition of triggers.

Acceptance Criteria

  • Time's managed configuration in eclipse-score/.eclipsefdn, otterdog/eclipse-score.jsonnet, defines a required merge queue for main, and the reconciled live GitHub ruleset enforces it.
  • The queue uses squash merging, compatible with Time's existing linear-history rule; ECA, approval, code-owner, stale-review and force-push protections remain effective. Queue timeout/concurrency/group settings are recorded and justified against observed Time CI runtimes.
  • A documented required-check matrix identifies the exact GitHub check names and whether each runs on PRs, merge groups, or both. Linux builds, component/unit tests and documentation validation/build are blocking on the merge-group SHA; the treatment of QNX and every other existing check is explicitly recorded, including any temporarily advisory checks and their follow-up issues.
  • The selected checks are required by the managed/live ruleset, either individually or through a stable aggregate check (Lifecycle's Ready to merge is the reference). Any aggregate check fails when a mandatory job fails or is cancelled and cannot report success when a mandatory job is unexpectedly skipped or absent; explicitly PR-only jobs do not deadlock the queue.
  • Every queue-required workflow handles merge_group: checks_requested and validates the merge-group commit, including reusable-workflow checkout/input handling. PR-payload assumptions, path filters, concurrency cancellation and privileged/fork-PR behavior are checked so that queue checks neither hang nor silently skip validation; secrets are not exposed to untrusted PR code.
  • Existing PR feedback and intended post-merge publication behavior are preserved; merge-group events do not accidentally publish documentation, quality packs or releases.
  • Live validation evidence is attached: a successful queued PR reaches main; a controlled failing mandatory check prevents merging; and two queued PRs are validated against the updated/combined base rather than relying on stale PR-only results. Record PR URLs, workflow runs and the final live ruleset.
  • Contributor guidance explains prerequisites, adding/removing a PR from the queue, diagnosing/retrying failures, and who owns policy changes and rollback.

How

  1. Audit Time's existing workflows and agree the required-check matrix before changing repository enforcement. Prefer reusing existing workflows; adopting all shared CI tooling is not part of this task.
  2. Prepare the Time workflow changes first, using Lifecycle's aggregate-gate approach where appropriate. Do not copy Lifecycle's skip handling without checking which Time jobs are mandatory for each event.
  3. Submit the policy change through eclipse-score/.eclipsefdn rather than relying on a manual GitHub-settings edit. Coordinate reconciliation with the repository/infrastructure maintainers and enable enforcement only once all named checks can be emitted on merge groups.
  4. Validate the live queue, then publish contributor guidance and evidence.

Fixing all existing clang-tidy/sanitizer findings is outside this ticket. Existing work is tracked by #111 and #112; explicitly retain or change their advisory status rather than silently converting them into green mandatory gates.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions