Skip to content

ci: fix reusable workflow event_name checks for nightly runs - #8633

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/fix-workflow-call-event-conditions
Nov 22, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/fix-workflow-call-event-conditions

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 22, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Follow-up to #8579 and #8577.

Rationale for this change

In GitHub Actions, when a reusable workflow is invoked via workflow_call, github.event_name preserves the caller workflow's triggering event name (such as schedule or workflow_dispatch), never 'workflow_call'.

Because .github/workflows/ci_core.yml gated build_all_platforms with if: github.event_name == 'workflow_call', the first scheduled Nightly Tier A run (https://github.com/apache/opendal/actions/runs/44934008209) skipped core / build_all_platforms. Two other reusable workflows (service_test_ghac.yml and test_edge_aws_oidc.yml) used the same dead github.event_name == 'workflow_call' branch before !github.event.pull_request.head.repo.fork.

What changes are included in this PR?

  • .github/workflows/ci_core.yml: Change build_all_platforms condition from github.event_name == 'workflow_call' to github.event_name != 'pull_request' so it stays skipped on PRs and runs when called by nightly_tier_a.yml.
  • .github/workflows/service_test_ghac.yml: Change ghac_v2 condition from github.event_name == 'workflow_call' || !github.event.pull_request.head.repo.fork to github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork.
  • .github/workflows/test_edge_aws_oidc.yml: Apply the same fix to test_s3_aws_assume_role_with_web_identity.

Are there any user-facing changes?

None.

Breaking changes

AI Usage Statement

  • Harness: pi coding agent
  • Model: Gemini 4 Neon (magpie/agy-cli/gemini-4-neon)
  • Effort: high
  • Role: Audited the first scheduled Nightly Tier A run, identified the github.event_name == 'workflow_call' condition bug across reusable workflows, authored the 3-line workflow fix, and opened this PR.

@Xuanwo
Xuanwo requested a review from tisonkun as a code owner November 22, 2026 04:14
@Xuanwo
Xuanwo merged commit 3a12dbb into main Nov 22, 2026
38 of 39 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/fix-workflow-call-event-conditions branch November 22, 2026 04:47
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