Skip to content

Modernize CI: drop retired ubuntu-20.04, pin transformers, fix AmazonLinux + CodeQL - #318

Merged
slava-at-amazon-com merged 1 commit into
amzn:mainlinefrom
slava-at-amazon-com:ci-modernization
Aug 26, 2026
Merged

slava-at-amazon-com merged 1 commit into
amzn:mainlinefrom
slava-at-amazon-com:ci-modernization

Conversation

@slava-at-amazon-com

Copy link
Copy Markdown
Member

Issue #, if available: N/A

Description of changes:

CI had bit-rotted after ~18 months without a run; this restores it so the required checks can pass again. No library logic changes — only workflow definitions and dependency bounds.

  • pytest.yml — remove the retired ubuntu-20.04 runner from the Ubuntu matrix; pin the Miniconda installer to a glibc-2.17-compatible release for the AmazonLinux (glibc 2.26) job; set PIP_ONLY_BINARY=:all: on that job so dependencies resolve to manylinux wheels instead of source-building against the old toolchain (which fails, e.g. newer numpy needs gcc>=9.3).
  • setup.py — cap transformers<4.49. Newer releases removed internals the XR-Transformer code imports (AdamW, SequenceSummary, and the *_INPUTS_DOCSTRING/*_START_DOCSTRING constants), so unpinned installs break at import.
  • style_type_check.yml — bump actions/checkout and actions/setup-python to current majors (v1 can no longer resolve Python 3.9 on the current runner image).
  • codeql.yml — add a permissions: block (security-events: write, actions: read, contents: read) so code scanning can upload results.

Validated by reproducing every workflow on a fork and running the full build + test suite (make libpecos && make test) in AmazonLinux containers for Python 3.9 and 3.12.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Refresh runner images, dependency pins, and workflow actions that drifted
during ~18 months of repo inactivity.
@slava-at-amazon-com
slava-at-amazon-com marked this pull request as ready for review August 25, 2026 19:40
@slava-at-amazon-com slava-at-amazon-com self-assigned this Aug 26, 2026
@vpung vpung self-assigned this Aug 26, 2026
@vpung vpung removed their assignment Aug 26, 2026
@slava-at-amazon-com
slava-at-amazon-com merged commit 015cbd8 into amzn:mainline Aug 26, 2026
24 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.

2 participants