Skip to content

GH-39057: [CI][C++][Go] Don't run jobs that use a self-hosted GitHub Actions Runner on fork#39903

Merged
kou merged 1 commit intoapache:mainfrom
kou:ci-cpp-self-hosted
Feb 6, 2024
Merged

GH-39057: [CI][C++][Go] Don't run jobs that use a self-hosted GitHub Actions Runner on fork#39903
kou merged 1 commit intoapache:mainfrom
kou:ci-cpp-self-hosted

Conversation

@kou
Copy link
Copy Markdown
Member

@kou kou commented Feb 2, 2024

Rationale for this change

If jobs that use a self-hosted GitHub Actions Runner on fork are submitted on fork, they will timeout eventually and report noisy failure notifications.

What changes are included in this PR?

We can't use jobs.<job_id>.if to reject jobs that use self-hosted GitHub Actions Runner because jobs.<job_id>.if is evaluated before jobs.<job_id>.strategy.matrix.

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif

Note: The jobs.<job_id>.if condition is evaluated before
jobs.<job_id>.strategy.matrix is applied.

We can use output jobs<job_id>.outputs instead. See also:

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@kou kou requested review from assignUser and raulcd as code owners February 2, 2024 01:15
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 2, 2024

⚠️ GitHub issue #39057 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Feb 2, 2024
…itHub Actions Runner on fork

We can't use `jobs.<job_id>.if` to reject jobs that use self-hosted
GitHub Actions Runner because `jobs.<job_id>.if` is evaluated before
`jobs.<job_id>.strategy.matrix`.

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif

> Note: The `jobs.<job_id>.if` condition is evaluated before
> `jobs.<job_id>.strategy.matrix` is applied.

We can use output `jobs<job_id>.outputs` instead. See also:

* https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
* https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs
@kou kou force-pushed the ci-cpp-self-hosted branch from d91d4c6 to 6eaa127 Compare February 2, 2024 01:18
@kou
Copy link
Copy Markdown
Member Author

kou commented Feb 2, 2024

This PR:

My fork:

@kou
Copy link
Copy Markdown
Member Author

kou commented Feb 2, 2024

I'll merge this in the next week if nobody objects this.

@kou
Copy link
Copy Markdown
Member Author

kou commented Feb 6, 2024

+1

No objection.

@kou kou merged commit 062c841 into apache:main Feb 6, 2024
@kou kou deleted the ci-cpp-self-hosted branch February 6, 2024 01:56
@kou kou removed the awaiting committer review Awaiting committer review label Feb 6, 2024
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 062c841.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…itHub Actions Runner on fork (apache#39903)

### Rationale for this change

If jobs that use a self-hosted GitHub Actions Runner on fork are submitted on fork, they will timeout eventually and report noisy failure notifications.

### What changes are included in this PR?

We can't use `jobs.<job_id>.if` to reject jobs that use self-hosted GitHub Actions Runner because `jobs.<job_id>.if` is evaluated before `jobs.<job_id>.strategy.matrix`.

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif

> Note: The `jobs.<job_id>.if` condition is evaluated before
> `jobs.<job_id>.strategy.matrix` is applied.

We can use output `jobs<job_id>.outputs` instead. See also:

* https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
* https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#39057

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
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.

[CI][C++][Go] Don't run jobs that use a self-hosted GitHub Actions Runner on fork

1 participant