Skip to content

ci: run the Librarian gate on ubuntu-24.04 with Python 3.11 - #1217

Closed
PRAteek-singHWY wants to merge 1 commit into
OWASP:mainfrom
PRAteek-singHWY:ci_pin_ubuntu_2404
Closed

PRAteek-singHWY wants to merge 1 commit into
OWASP:mainfrom
PRAteek-singHWY:ci_pin_ubuntu_2404

Conversation

@PRAteek-singHWY

Copy link
Copy Markdown
Contributor

Hi @northdpole, small CI fix.

The Librarian Regression Gate keeps failing on the librarian PRs before any test even runs, whenever it lands on a 26.04 runner. It dies at the Python setup step:

Runner Image: ubuntu-26.04
The version '3.12.3' with architecture 'x64' was not found for Ubuntu 26.04.

ubuntu-latest is now giving out 26.04 runners and setup-python has no 3.12.3 build for 26.04. #1201 already fixed this for Test and Test-e2e by moving them to ubuntu-24.04 and Python 3.11, but librarian_regression.yml got missed. This PR makes the same two-line change there, nothing else.

I ran both gate steps locally on Python 3.11 on this branch. The librarian suite ran 264 tests, all OK, and the golden-set gate printed explicit slice 5/5 PASS. Main's Test job has also been running the librarian tests on 3.11 since #1201 (1097 tests OK on 6 Nov).

This is what's blocking the gate on #1161, #1167, #1171 and #1172, they'll go green on the next push after this lands.

OWASP#1201 moved Test and Test-e2e off ubuntu-latest and Python 3.12.3, but the
Librarian Regression Gate was missed. ubuntu-latest now hands out Ubuntu
26.04 runners, and actions/setup-python has no 3.12.3 build for 26.04, so
the gate fails at setup whenever it lands on one:

  The version '3.12.3' with architecture 'x64' was not found for Ubuntu 26.04.

Use the same runner and Python as OWASP#1201.
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary by CodeRabbit

  • Chores
    • Updated the automated regression-check environment. No user-facing changes are included in this update.

Walkthrough

The Librarian Regression Gate workflow now runs on ubuntu-24.04 and sets up Python 3.11.

Changes

Librarian Regression Gate Environment

Layer / File(s) Summary
Set workflow runner and Python version
.github/workflows/librarian_regression.yml
The workflow runner changed from ubuntu-latest to ubuntu-24.04. The Python version changed from 3.12.3 to 3.11.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other · Severity of issue fixed: Low

Possibly related PRs

  • OWASP/OpenCRE#1134: This PR changes the Python version in the same workflow, so its pin conflicts with this PR’s 3.11 setting.
  • OWASP/OpenCRE#1201: This PR applies the same Ubuntu runner and Python version to the Test and Test-e2e workflows.
Merge Risk: Minimal · up to 563fa

No merge-blocking risk is identified in the environment update.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title states the main change: the Librarian Regression Gate now runs on ubuntu-24.04 with Python 3.11. The raw summary confirms the workflow change to .github/workflows/librarian_regression.yml (+…
Description check Passed The description explains the change. It says the Librarian Regression Gate fails at the Python setup step on a 26.04 runner because Python 3.12.3 is not available there. It says the fix moves the gate…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the Librarian Regression Gate now runs on ubuntu-24.04 with Python 3.11. The raw summary confirms the workflow change to .github/workflows/librarian_regression.yml (+2/-2), which matches the title. The title uses a conventional ci: prefix and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description explains the change. It says the Librarian Regression Gate fails at the Python setup step on a 26.04 runner because Python 3.12.3 is not available there. It says the fix moves the gate to ubuntu-24.04 and Python 3.11, the same change made for Test and Test-e2e in #1201. It also reports local test results and the PRs this change unblocks. This is directly related to the changeset.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: OWASP/OpenCRE
  • Branch: main
  • File: .coderabbit.yml
  • Commit: ace5f0b
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53e7a386-f718-4109-9404-551a4648d0cc
Commits

Reviewing files that changed from the base of the PR and between ace5f0b and 563fac6.

Files selected for processing: 1

  • .github/workflows/librarian_regression.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@PRAteek-singHWY

Copy link
Copy Markdown
Contributor Author

Closing this, #1134 already carries the same gate fix.

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