Skip to content

CI: pin opencryptoki to v3.28.0 - #252

Open
afchine1337 wants to merge 2 commits into
pyauth:masterfrom
afchine1337:opencryptoki-aes-ctr
Open

afchine1337 wants to merge 2 commits into
pyauth:masterfrom
afchine1337:opencryptoki-aes-ctr

Conversation

@afchine1337

@afchine1337 afchine1337 commented Nov 15, 2026 •

Copy link
Copy Markdown

The install-opencryptoki action cloned opencryptoki master, so CI results could change with no change in this repository. Two AES-CTR fixes merged on opencryptoki master on 2026-11-10 (opencryptoki/opencryptoki@1c5ac77c8 and opencryptoki/opencryptoki@e987dd3aa) turned three strict FIXME.opencryptoki xfails in tests/test_aes.py into unexpected successes, which is why #250 and #251 went red.

This pins the clone to the latest release, v3.28.0 (2026-11-04), with --depth 1.

Both fixes landed after that tag, so the three markers are still correct against it. The first version of this PR removed them; they are back, and the diff against master is now the pin alone. They should be dropped together with the next bump of the pin, once a release contains the fixes.

opencryptoki fixed its AES-CTR implementation on 2026-11-06: it no longer
requires the data to be a multiple of the block size (1c5ac77c8) and no
longer ignores the nonce for counter widths under 128 bits (e987dd3aa).
CI builds opencryptoki from its master branch, so the three tests marked
FIXME.opencryptoki for that limitation now pass there, and the strict
xfail reports them as unexpected successes: 12 failures per Python
version in the opencryptoki jobs, which fail-fast then turns into
cancelled macOS and coverage jobs on every new pull request.

The markers are removed from test_encrypt_ctr,
test_encrypt_ctr_nonce_mismatch and test_aes_ctr_test_vector.
test_encrypt_ctr_exactly_padded is kept as it is.
@MatthiasValvekens

Copy link
Copy Markdown
Collaborator

Hi, good catch. Pinning to a release is certainly something worth considering--back when this job was first set up it needed some unreleased features, but that doesn't seem to be the case anymore. Feel free to pin the job to the latest release tag.

@codecov-commenter

codecov-commenter commented Nov 15, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.32%. Comparing base (fc44b72) to head (75b2c4b).
⚠️ Report is 12 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
+ Coverage   91.52%   92.32%   +0.80%     
==========================================
  Files          15       15              
  Lines        2713     2788      +75     
  Branches       27       27              
==========================================
+ Hits         2483     2574      +91     
+ Misses        228      212      -16     
  Partials        2        2              
Flag Coverage Δ
unittests 92.32% <ø> (+0.80%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

The install-opencryptoki action cloned opencryptoki master, so the
suite's results could change with no change in this repository. That is
what turned CI red: two AES-CTR fixes merged on opencryptoki master on
2026-11-10 made three strict FIXME.opencryptoki xfails in
tests/test_aes.py pass unexpectedly.

Pin the clone to the latest release, v3.28.0 (2026-11-04). Both fixes
landed after that tag, so the three markers are still right against it
and are restored here; the previous commit on this branch had removed
them. They go when the pin moves to a release that contains the fixes.
@afchine1337

Copy link
Copy Markdown
Author

Thanks! Pinned to v3.28.0. One consequence: the two AES-CTR fixes (opencryptoki/opencryptoki@1c5ac77c8, opencryptoki/opencryptoki@e987dd3aa) went into opencryptoki master on 2026-11-10, after the 3.28.0 tag, so against the pinned release the three FIXME.opencryptoki markers are still correct. I restored them, and the PR is now just the pin. I updated the title and description to match. The markers can go with the next bump, once a release includes the fixes.

@afchine1337 afchine1337 changed the title Drop the opencryptoki xfail on the AES-CTR tests CI: pin opencryptoki to v3.28.0 Nov 15, 2026

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.

3 participants