Skip to content

GH-50133: [CI] Make extra labels entirely manual on PRs#50256

Merged
raulcd merged 3 commits into
apache:mainfrom
pitrou:gh50133-manual-extra-labels
Jun 30, 2026
Merged

GH-50133: [CI] Make extra labels entirely manual on PRs#50256
raulcd merged 3 commits into
apache:mainfrom
pitrou:gh50133-manual-extra-labels

Conversation

@pitrou

@pitrou pitrou commented Jun 25, 2026

Copy link
Copy Markdown
Member

Rationale for this change

Our "Extra" labels for CI are currently both manual and automatic:

  • manual, such that a committer can add a label to force an additional of CI jobs to run on a PR
  • automatic, such that specific file changes can also force those additional CI jobs to run

However, the two mechanisms can conflict with each other, when an Extra label is manually added by a committer, but none of the file changes match. The label can then be later removed by the automatic labelling bot.

What changes are included in this PR?

Make the "Extra" labels manual-only. The corresponding CI workflows are still triggered automatically on non-PR events (such as pushes and cron schedules).

Are these changes tested?

Manually on this PR.

Are there any user-facing changes?

No.

@pitrou pitrou added the CI: Extra: C++ Run extra C++ CI label Jun 25, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot added awaiting review Awaiting review and removed CI: Extra: C++ Run extra C++ CI labels Jun 25, 2026
@pitrou pitrou added the CI: Extra: C++ Run extra C++ CI label Jun 25, 2026
@pitrou

pitrou commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

Ping @raulcd @kou

@pitrou

pitrou commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

"Extra: C++" does not seem to be working as expected here?

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, as seen on the other issue, should we also avoid forcing a build if the workflow file has changed?

git diff --stat origin/${GITHUB_BASE_REF}..
if git diff --stat origin/${GITHUB_BASE_REF}.. | \
grep \
--fixed-strings ".github/workflows/${PARENT_WORKFLOW}.yml" \
--quiet; then
echo "force=true" >> "${GITHUB_OUTPUT}"

This might force builds when the PR is old and new changes are merged on main.

@kou what do you think on that case?

@github-actions github-actions Bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Jun 25, 2026
@raulcd

raulcd commented Jun 25, 2026

Copy link
Copy Markdown
Member

"Extra: C++" does not seem to be working as expected here?

doesn't it still require changes on the defined path? We could force check on all (remove the paths as we do for cuda_extra.yml)

    paths:
      - '.dockerignore'
      - '.github/workflows/check_labels.yml'
      - '.github/workflows/cpp_extra.yml'
      - '.github/workflows/cpp_windows.yml'
      - '.github/workflows/report_ci.yml'
      - 'ci/conda_env_*'
      - 'ci/docker/**'
      - 'ci/scripts/ccache_setup.sh'
      - 'ci/scripts/cpp_*'
      - 'ci/scripts/install_azurite.sh'
      - 'ci/scripts/install_gcs_testbench.sh'
      - 'ci/scripts/install_minio.sh'
      - 'ci/scripts/msys2_*'
      - 'ci/scripts/util_*'
      - 'cpp/**'
      - 'compose.yaml'
      - 'dev/archery/archery/**'
      - 'format/Flight.proto'
      - 'testing'

@kou

kou commented Jun 26, 2026

Copy link
Copy Markdown
Member

should we also avoid forcing a build if the workflow file has changed?

+1

@pitrou pitrou force-pushed the gh50133-manual-extra-labels branch from 3cc1eca to 96bd339 Compare June 29, 2026 12:48
@github-actions github-actions Bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jun 29, 2026
@pitrou pitrou changed the title GH-50133: [CI] Make extra labels entirely manual GH-50133: [CI] Make extra labels entirely manual on PRs Jun 29, 2026
@pitrou pitrou added CI: Extra: C++ Run extra C++ CI CI: Extra: R Run extra R CI CI: Extra: CUDA Run extra CUDA CI and removed CI: Extra: C++ Run extra C++ CI CI: Extra: CUDA Run extra CUDA CI CI: Extra: R Run extra R CI labels Jun 29, 2026
@pitrou pitrou force-pushed the gh50133-manual-extra-labels branch from 96bd339 to 09c8014 Compare June 29, 2026 12:57
@pitrou pitrou force-pushed the gh50133-manual-extra-labels branch from 7d2406a to 49fd536 Compare June 29, 2026 14:47
@pitrou pitrou added CI: Extra: C++ Run extra C++ CI and removed CI: Extra: C++ Run extra C++ CI CI: Extra: Package: Linux Run extra Linux Packages CI labels Jun 29, 2026
@pitrou pitrou force-pushed the gh50133-manual-extra-labels branch from 49fd536 to d0d35dd Compare June 29, 2026 14:52
@github-actions github-actions Bot added CI: Extra: C++ Run extra C++ CI CI: Extra: Package: Linux Run extra Linux Packages CI labels Jun 29, 2026
@pitrou pitrou added CI: Extra: C++ Run extra C++ CI and removed CI: Extra: C++ Run extra C++ CI CI: Extra: Package: Linux Run extra Linux Packages CI labels Jun 29, 2026
@pitrou pitrou force-pushed the gh50133-manual-extra-labels branch from d0d35dd to 97d0bf8 Compare June 29, 2026 14:58
@github-actions github-actions Bot added the CI: Extra: Package: Linux Run extra Linux Packages CI label Jun 29, 2026
@pitrou pitrou added CI: Extra: R Run extra R CI CI: Extra: CUDA Run extra CUDA CI and removed CI: Extra: R Run extra R CI labels Jun 29, 2026
@pitrou

pitrou commented Jun 29, 2026

Copy link
Copy Markdown
Member Author

@raulcd @kou I've reworked the logic a bit more, to remove some copy-pasted if clauses in individual jobs. Can you take a look again?

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

I don't object this but I doubt that labelar is related: #50133 (comment)

@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Jun 29, 2026

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pitrou

@raulcd raulcd merged commit 1e0c66d into apache:main Jun 30, 2026
88 of 165 checks passed
@raulcd raulcd removed the awaiting merge Awaiting merge label Jun 30, 2026
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 1e0c66d.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge Awaiting merge CI: Extra: C++ Run extra C++ CI CI: Extra: CUDA Run extra CUDA CI CI: Extra: Package: Linux Run extra Linux Packages CI CI: Extra: R Run extra R CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants