Skip to content

ci: move main full verification to isolated nightly pipelines and add main canary - #8577

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/ci-nightly-and-canary
Nov 21, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/ci-nightly-and-canary

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 21, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Rationale for this change

Every merge to main currently triggers the full verification matrix across core, 17 language bindings, 5 integrations, fuzzing, edge tests, and ~350 behavior test jobs—even for documentation-only commits. Under frequent merges, most push: main runs are either cancelled mid-flight by concurrency or fail due to external live cloud service instability, making per-commit attribution unreliable while consuming large runner budgets.

This PR implements Phase 1 of moving full main verification onto isolated nightly pipelines while keeping fast post-merge signal on main and keeping PR CI coverage intact as a control group before Phase 2 PR scoping.

What changes are included in this PR?

  1. Replace heavy push: main verification with ci_main_canary.yml:
    • Remove push: main triggers from ci_check.yml, ci_core.yml, ci_odev.yml, test_behavior.yml, test_edge.yml, test_fuzz.yml, service_test_ghac.yml, the 5 ci_integration_*.yml workflows, and all 17 ci_bindings_*.yml workflows (preserving push.tags on release/binding workflows and keeping side-effect push: main workflows: docs.yml, label.yml, weekly_release.yml, asf_allowlist_check.yml).
    • Add .github/workflows/ci_main_canary.yml running cargo check --workspace --lib --all-features --locked and cargo nextest run -p opendal-core -p opendal --locked on Rust-affecting pushes to main.
  2. Add three isolated Nightly pipelines with automated deduplicated reporting:
    • .github/workflows/nightly_tier_a.yml (daily 18:00 UTC): calls ci_check, ci_core, ci_odev, all 15 enabled ci_bindings_* (excluding manually disabled d and swift), all 5 ci_integration_*, local test_edge, and test_behavior in nightly-local mode with zero external secrets. Opens/updates deduplicated [Nightly] (ci/nightly) issues on first regression and auto-closes only when the same item explicitly passes.
    • .github/workflows/nightly_tier_b.yml (daily 18:15 UTC): runs live external setups (test_behavior in nightly-live mode with per-setup core jobs, service_test_ghac.yml, and split .github/workflows/test_edge_aws_oidc.yml) with 1 automatic retry. Opens/updates [Nightly Live] (ci/nightly, ci/live-service) issues only after 2 consecutive nightly failures for the same item, and auto-closes only on verified pass.
    • .github/workflows/test_fuzz.yml (daily 18:30 UTC): runs longer scheduled fuzzing (600s) and uploads crash artifacts on failure.
    • .github/scripts/nightly/report.py + unit tests (.github/scripts/nightly/test_report.py), using GitHub REST API status=success schedule history for last_green_sha..HEAD suspect ranges with no external state store, plus a broad-failure rollup cap (>10 new failures).
  3. Explicit behavior planner modes & strict secret isolation:
    • Add --mode {pr,nightly-local,nightly-live} to .github/scripts/test_behavior/plan.py with backend-locality partitioning (classifying both op://services and github/read_only as live) and fail-loud coverage assertions so nightly runs cannot silently plan 0 components or omit integration_object_store.
    • Replace secrets: inherit in test_behavior.yml and child workflows with explicit optional OP_CONNECT_HOST/OP_CONNECT_TOKEN secrets gated by enable_secrets; add unique per-workflow concurrency groups across all reusable workflows so parallel workflow_call invocations cannot cancel one another.
    • Run planner and nightly reporter unit tests in ci_check.yml (ci-scripts job).
  4. Cleanup & incidental fixes:
    • Remove unused .github/workflows/full-ci-promote.yml and obsolete pr_number input from test_behavior.yml.
    • Add ci_bindings_python.yml to the RC dispatch loop in .github/workflows/weekly_release.yml.
    • Remove redundant Monday schedule from ci_bindings_java.yml and narrow ci_bindings_go.yml permissions to contents: read.
    • Include .asf.yaml in .github/workflows/docs.yml trigger paths.
    • Register ci/nightly and ci/live-service labels in scripts/label.py and .github/LABELS.md.

Are there any user-facing changes?

No public library API changes. Maintainers will see automated [Nightly] and [Nightly Live] GitHub Issues for main health instead of per-commit full push: main runs.

Breaking changes

AI Usage Statement

  • Harness: pi (via T3 Code)
  • Model: Gemini 4 Neon
  • Effort: high
  • Role: Drafted the CI redesign proposal, implemented the workflow, planner, and nightly reporter changes, and ran local YAML/contract/license/unit-test validation.
  • Harness: Codex (via T3 Code delegated review)
  • Model: gpt-6.2-astra
  • Effort: high
  • Role: Reviewed the proposal across two rounds, catching workflow_call concurrency collisions, github/read_only and test_edge Tier A/B isolation boundaries, object_store omission in push planning, ci_bindings_go.yml write permissions, and weekly_release.yml missing ci_bindings_python.yml.

Assumptions / unknowns: Scheduled nightly execution and live issue reconciliation run on refs/heads/main and should be smoke-verified via workflow_dispatch (dry_run=true first) once merged.

@Xuanwo
Xuanwo requested a review from tisonkun as a code owner November 21, 2026 14:45
@Xuanwo
Xuanwo merged commit 6da9ff3 into main Nov 21, 2026
440 of 476 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/ci-nightly-and-canary branch November 21, 2026 15:07
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.

2 participants