Skip to content

fix stable and latest CI#1340

Merged
josephleekl merged 17 commits intomasterfrom
fix-CI-pyproject
Feb 5, 2026
Merged

fix stable and latest CI#1340
josephleekl merged 17 commits intomasterfrom
fix-CI-pyproject

Conversation

@josephleekl
Copy link
Contributor

@josephleekl josephleekl commented Feb 4, 2026

Context:
There are several issues causing our CIs to fail:

  • Since we removed our requirements.txt files and have all dependencies specified in pyproject.toml, our stable CI tests have failed, as it cannot install the test dependencies with the same command.
  • Since pytest 9.0 is introduced, one of test fixtures is deprecated and caused an error
  • This uncovered one issue with PennyLane's queueing of matrix decomposition in a test
  • This uncovered another issue with PennyLane's handling of wire_order in Composite Op

Description of the Change:

  1. We introduce a temporary patch (which needs to be removed in the next release cycle) to install test dependencies with pip install -r requirements-tests.txt (the old way) for stable CI runs.

  2. We updated the fixture to be compliant with pytest 9.0.For stable test, this is not reflected, so we pull the older version of pytest, which will also be removed in the next release cycle.

  3. We apply the same fix applied before to an offending test in the mpitests

  4. We update the argument type of wire_order in a test

Benefits:
stable/stable and latest/latest CIs both pass again.

Possible Drawbacks:

Related GitHub Issues:

[sc-110620]

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.83%. Comparing base (935644a) to head (d73f98b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1340      +/-   ##
==========================================
- Coverage   95.58%   94.83%   -0.75%     
==========================================
  Files         243      187      -56     
  Lines       40039    28815   -11224     
==========================================
- Hits        38272    27328   -10944     
+ Misses       1767     1487     -280     
Flag Coverage Δ
unit_tests 94.83% <100.00%> (-0.75%) ⬇️

☔ View full report in Codecov by Sentry.
📢 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.

@josephleekl josephleekl changed the title fix stable CI from pyproject.toml fix stable and latest CI Feb 4, 2026
@blacksmith-sh

This comment has been minimized.

@josephleekl josephleekl marked this pull request as ready for review February 5, 2026 16:31
@josephleekl josephleekl requested a review from a team February 5, 2026 16:32
Copy link
Contributor

@JerryChen97 JerryChen97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

Copy link
Member

@maliasadi maliasadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @josephleekl!

Don't forget to update the changelog :)

Copy link
Contributor

@jzaia18 jzaia18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, just don't forget to create a story for after the release

josephleekl and others added 3 commits February 5, 2026 16:54
Co-authored-by: Luis Alfredo Nuñez Meneses <alfredo.nunez@xanadu.ai>
@josephleekl josephleekl merged commit 6c591f2 into master Feb 5, 2026
169 of 170 checks passed
@josephleekl josephleekl deleted the fix-CI-pyproject branch February 5, 2026 21:17
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.

6 participants