Repository navigation
Conversation
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>
|
System tests are stalled, and it isn't caused by this change. There are two problems with the self-hosted Windows runners:
Possible ways forward:
I haven't rerun the jobs, because they'd hit the Python 3.15 build failure even if a runner were available. |
What does this Pull Request accomplish?
Restores CI on
releases/2.3for pull requests. The branch hasn't built since mid-2025, and three things have broken since then:26c46d3e, "github: Specify required permissions for each job") as a clean cherry-pick.PR.ymlandCI.ymlgrantchecks: write/pull-requests: writeto the jobs that call the reusable workflows,report_test_results.ymlrequests them at job level, andPublish_NIMS.ymlgets job-levelcontents: write(kept to match github: Specify required permissions for each job #1140 exactly).check_nims,check_nimg,check_examples,Publish_NIMS, and the Ubuntu leg ofrun_unit_tests) fromubuntu-latesttoubuntu-24.04.ubuntu-latestnow resolves to Ubuntu 26.04, which has no Python 3.11.9 build.actions/setup-pythonstep torun_system_tests.ymlthat installs 3.9–3.13 (x86forpy32,x64forpy64), with 3.11 as the default. The shared image now only provides Python 3.15, which main targets, andgrpcio1.71.0 from this branch's lock file has no cp315 wheels.Why should this Pull Request be merged?
PR builds against
releases/2.3currently cannot pass:Set up Pythonfails on Ubuntu ("The version '3.11.9' with architecture 'x64' was not found for Ubuntu 26.04."), and system tests fail inpoetry installwhile buildinggrpciofrom source oncpython-315.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 26c46d3eapplied without conflicts; all.github/workflows/*.ymlfiles parse with PyYAML.Report test resultssucceeds; the UbuntuSet up Pythonfailure appears.Install dependencies(grpcio source build on Python 3.15).