Skip to content

ci: run the macOS tests in one job again, since its two halves wait for two of the organization's scarce macOS runners - #2308

Merged
lagergren merged 1 commit into
redhat-developer:mainfrom
lagergren:ci/macos-one-job
Nov 27, 2026
Merged

lagergren merged 1 commit into
redhat-developer:mainfrom
lagergren:ci/macos-one-job

Conversation

@lagergren

Copy link
Copy Markdown
Collaborator

Reverts the CI part of 66b9f9b (#2291): macOS runs as one job, Test (macos-latest), with all the test classes, as before. Part of #2298.

Why

Since about 16:00 CET on 2026-11-26, every macOS job waits for a runner of the organization's shared pool, single jobs as long as the halves:

When (CET) Job Waited
11-26 18:53 single, #2294 45 min
11-26 20:03 single, #2289 69 min
11-26 20:03 halves, #2297 74 and 66 min
11-27 10:10 halves, main push of #2300 105 and 102 min
11-27 11:24 halves, #2303 38 min, the other still waiting

From 2026-11-21 to that afternoon, ~375 macOS jobs all started within 1.2 minutes.

With the pool short, the two halves get a runner at different times (17 and 46 minutes, 7 and 16, 38 and still waiting), so a pull request waits for the later one, and each run takes two slots of the pool. The split saved about 7 minutes of an 18-minute job.

What

#2298 has the rest: macOS only on main and in the nightly, and none for a push of docs only.

…or two of the organization's scarce macOS runners

This reverts the CI part of 66b9f9b (redhat-developer#2291): macOS runs as
"Test (macos-latest)" again, with all the test classes.

Since about 16:00 CET on 2026-11-26, every macOS job waits for a runner of
the organization's shared pool: 13 to 105 minutes, single jobs as long as
halves. From 2026-11-21 to that afternoon, ~375 macOS jobs started within
1.2 minutes. With the pool short, the two halves get a runner at different
times (17 and 46 minutes, 7 and 16, one at 38 while the other still waits),
so a pull request waits for the later one, and each run takes two slots of
the pool. The split saved about 7 minutes of a job that ran 18.

-PtestShard=<k>/<n> stays in the build, unused by CI. redhat-developer#2298 has the rest:
macOS only on main and in the nightly, and none for a push of docs only.

Part of redhat-developer#2298
@lagergren lagergren added this to the 0.30.2 milestone Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b5dd07d8-9d35-434d-92ca-a402afe0d96e
Commits

Reviewing files that changed from the base of the PR and between a900e49 and 622c8e8.

Files selected for processing: 1

  • .github/workflows/ci.yml

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.51%. Comparing base (a900e49) to head (622c8e8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2308   +/-   ##
=======================================
  Coverage   58.51%   58.51%           
=======================================
  Files         847      847           
  Lines       36501    36501           
  Branches     7560     7560           
=======================================
  Hits        21360    21360           
  Misses      12136    12136           
  Partials     3005     3005           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

lagergren added a commit that referenced this pull request Nov 27, 2026
…t changes only documentation, as for a pull request (#2309)

Part of #2298: a push to main that changes only documentation skips the
tests and the plugin verification, as a pull request of documentation
only already does.

## Why

`changes.yml` listed the files of a pull request only, so every push to
main ran the whole test matrix and the verification against every IDE
release, also for documentation only: the code of the commit before,
which its own push had tested. The main push of #2300 (docs only) held
two macOS runners of the organization's short pool in the queue for over
100 minutes, ahead of the pull requests behind it.

## What

- **`changes.yml`:** on a push, the compare API lists the files of the
whole range `before...after`, so that the several commits of a rebase
merge count together. It is documentation only when every file is under
`docs/` or a Markdown file at the root, as for a pull request.
- **Still runs everything:** a push without a previous commit (the first
of a branch), one whose range isn't only new commits (`status` other
than `ahead`, as a rewritten history), and one of 300 files or more,
which the API may cut.
- **Build Plugin zip** still runs on every push: the plugin's
description comes from `README.md`.
- The `changes` jobs of `ci.yml` and `IJ.yml` get `contents: read`, for
the compare API.

## Checked

The step, run locally against main's history:

| Push | Result |
|---|---|
| `10a04d91..a900e49`, #2300 (docs) | documentation only |
| `ff1902e1..10a04d9`, #2289 (code) | runs everything |
| `e25c0382..a900e49`, three merges at once | runs everything |
| `01058929..e25c038`, #2294's rebase merge (docs and a template) |
runs everything |
| `0000…..a900e49`, a new branch | runs everything |
| `4f30741e..a900e49`, a diverged range | runs everything |
| pull requests #2300 / #2302 | documentation only / runs everything, as
before |

actionlint passes on the three workflows, and the branch merges cleanly
with #2308. The push path itself runs only on main, so the first
docs-only push after this merge is its real test.
@lagergren
lagergren merged commit d2ab131 into redhat-developer:main Nov 27, 2026
11 checks passed
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.

1 participant