Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 16, 2024

Summary

Two changes in pydot 3 changed the reference output:

  1. previously, attributes were sorted before being output. Pydot 3 stores them in declaration order. Here, we sort our attributes to maintain the closest behaviour between the two versions.

  2. Text fields (like label) that contain special characters now have their values enclosed in quote marks. This is a difference between the two versions, and we update the reference files to the new version since that's what we'll be using in CI.

Qiskit is still compatible with pydot 2 in general usage, it's just our tests that are a little more tied to the current version.

Details and comments


This is an automatic backport of pull request #12775 done by [Mergify](https://mergify.com).

* Fix pass-manager drawing tests for pydot 3.0

Two changes in pydot 3 changed the reference output:

1. previously, attributes were sorted before being output.  Pydot 3
   stores them in declaration order.  Here, we sort our attributes to
   maintain the closest behaviour between the two versions.

2. Text fields (like `label`) that contain special characters now have
   their values enclosed in quote marks.  This is a difference between
   the two versions, and we update the reference files to the new
   version since that's what we'll be using in CI.

Qiskit is still compatible with pydot 2 in general usage, it's just our
tests that are a little more tied to the current version.

* Add test-only constraint on pydot

(cherry picked from commit c3b468c)
@mergify mergify bot requested review from nonhermitian and a team as code owners July 16, 2024 14:07
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

@github-actions github-actions bot added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog mod: visualization qiskit.visualization labels Jul 16, 2024
@jakelishman jakelishman enabled auto-merge July 16, 2024 14:09
@jakelishman jakelishman added this to the 1.1.2 milestone Jul 16, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9958420987

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.02%) to 89.968%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/visualization/pass_manager_visualization.py 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
qiskit/visualization/pass_manager_visualization.py 1 17.54%
crates/qasm2/src/lex.rs 2 92.88%
Totals Coverage Status
Change from base Build 9897895059: 0.02%
Covered Lines: 61864
Relevant Lines: 68762

💛 - Coveralls

@jakelishman jakelishman added this pull request to the merge queue Jul 16, 2024
Merged via the queue into stable/1.1 with commit 94485d0 Jul 16, 2024
18 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.1/pr-12775 branch July 16, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog mod: visualization qiskit.visualization type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants