Skip to content

[releases/2.3] github: Fix PR builds (job permissions, runner images, Python versions) - #1360

Draft
amstewart wants to merge 3 commits into
ni:releases/2.3from
amstewart:users/astewart/releases-2.3-job-permissions
Draft

amstewart wants to merge 3 commits into
ni:releases/2.3from
amstewart:users/astewart/releases-2.3-job-permissions

Conversation

@amstewart

@amstewart amstewart commented Nov 30, 2026 •

Copy link
Copy Markdown

What does this Pull Request accomplish?

Restores CI on releases/2.3 for pull requests. The branch hasn't built since mid-2025, and three things have broken since then:

  1. Startup failure on fork PRs: backports github: Specify required permissions for each job #1140 (26c46d3e, "github: Specify required permissions for each job") as a clean cherry-pick. PR.yml and CI.yml grant checks: write / pull-requests: write to the jobs that call the reusable workflows, report_test_results.yml requests them at job level, and Publish_NIMS.yml gets job-level contents: write (kept to match github: Specify required permissions for each job #1140 exactly).
  2. Hosted Ubuntu runners: pins the Ubuntu jobs that set up Python (check_nims, check_nimg, check_examples, Publish_NIMS, and the Ubuntu leg of run_unit_tests) from ubuntu-latest to ubuntu-24.04. ubuntu-latest now resolves to Ubuntu 26.04, which has no Python 3.11.9 build.
  3. Self-hosted system test runners: adds an actions/setup-python step to run_system_tests.yml that installs 3.9–3.13 (x86 for py32, x64 for py64), with 3.11 as the default. The shared image now only provides Python 3.15, which main targets, and grpcio 1.71.0 from this branch's lock file has no cp315 wheels.

Why should this Pull Request be merged?

PR builds against releases/2.3 currently cannot pass:

Merging this first unblocks CI for #1358 and any other PR to this branch. Everything is workflow-only; package sources and lock files are unchanged.

What testing has been done?

  • git cherry-pick -x 26c46d3e applied without conflicts; all .github/workflows/*.yml files parse with PyYAML.
  • Run 46510520416 (fix 1 only): the workflow starts and Report test results succeeds; the Ubuntu Set up Python failure appears.
  • Run 46511385750 (fixes 1–2): Check NIMS, Check NIMG, Check examples, all 10 unit test jobs, and Report test results pass. Both system test jobs fail in Install dependencies (grpcio source build on Python 3.15).
  • Run 46519901009 (fixes 1–3): all hosted jobs pass again; system tests are waiting on the self-hosted runner pool.

bkeryan and others added 3 commits November 30, 2026 15:50
Backport of ni#1140 to releases/2.3. Without job-level permissions on the callers, reusable report_test_results.yml requests checks/pull-requests write that its callers do not grant, so PR builds from forks fail at startup ("The workflow is requesting 'checks: write, pull-requests: write', but is only allowed 'checks: none, pull-requests: none'").

(cherry picked from commit 26c46d3)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ubuntu-latest now resolves to Ubuntu 26.04, which has no Python 3.11.9 build, so setup-python fails in Check NIMS, Check NIMG, and Check examples. Pin the Ubuntu jobs that set up Python to ubuntu-24.04 so this release branch keeps testing on the same Python versions as before.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The shared self-hosted system test image now defaults to Python 3.15, which only main targets. grpcio 1.71.0 from this branch's lock file has no cp315 wheels, so poetry install falls back to a source build and fails. Install the versions in this branch's tox envlist (3.9-3.13) with the architecture that matches the py32/py64 configuration, and make 3.11 the default.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@amstewart amstewart changed the title [releases/2.3] github: Specify required permissions for each job [releases/2.3] github: Fix PR builds (job permissions, runner images, Python versions) Nov 30, 2026
@amstewart

Copy link
Copy Markdown
Author

System tests are stalled, and it isn't caused by this change. There are two problems with the self-hosted Windows runners:

  1. No runner is picking up the jobs. Both Run system tests (py32) and (py64) in this run have been queued since 2026-11-30 21:49 UTC. They wait for runners labelled rdss-measlinkbot-win-10-py32 / rdss-measlinkbot-win-10-py64, and no instance has been assigned. Every other job in the run passed. We can't see the runner pool's status with our access, so whoever owns the rdss-measlinkbot runners would need to check it.

  2. When the jobs did get runners, the dependency install failed. The two earlier runs on this branch (20:51 and 20:56 UTC) both failed in poetry install:

    • The runners' default Python is now 3.15 (the build produced cp315 extension modules).
    • releases/2.3 pins grpcio 1.71.0 and numpy 2.2.4, which have no Python 3.15 wheels, so Poetry built them from source.
    • That build failed with an MSVC error: cl : Command line error D8016 : '/std:c++17' and '/std:c11' command-line options are incompatible.

    run_system_tests.yml doesn't pin a Python version on either main or releases/2.3; it uses whatever the runner provides. I found no other system-test runs on any branch in the past week, so I haven't confirmed whether main has the same problem.

Possible ways forward:

  • Have the runner pool's owners restore the rdss-measlinkbot runners, and look at the Python 3.15 default on that image.
  • Pin a Python version in the system-test workflow that the locked dependencies have wheels for (for example 3.12 or 3.13), as a separate small change.
  • Treat the system tests as non-blocking for this PR. It only backports the workflow permissions fix, and all other checks pass.

I haven't rerun the jobs, because they'd hit the Python 3.15 build failure even if a runner were available.

This branch has not been deployed

No deployments
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