Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Qiskit Terra 0.25 from release_notes.rst #11436

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

Eric-Arellano
Copy link
Collaborator

@arnaucasau is improving the infrastructure in Qiskit/documentation in Qiskit/documentation#537 so that changing release notes for prior release versions will properly update those release note files. Right now, the repository only updates with the current version.

However, we're running into issues due to Qiskit Terra 0.25 being included in release_notes.html. Really, Terra 0.25 refers to Qiskit 0.44. It messes up our script, which splits out the single file release_notes.html into distinct pages like 0.44.md, 0.45.md, etc. Our script naively thinks that Qiskit Terra 0.25 should be Qiskit 0.25, i.e. the file 0.25.md.

We could add special-casing to the infrastructure in Qiskit/documentation to handle this edge case. But instead of adding that complexity, @ElePT, @arnaucasau and I were discussing that it seems unlikely we'll be changing release notes for Terra 0.25 at this point. If we do need to change them, we can always directly modify the notes in Qiskit/documentation.

This PR will make the infrastructure in Qiskit/documentation much simpler by avoiding adding special-case code.

@Eric-Arellano Eric-Arellano requested a review from a team as a code owner December 19, 2023 22:09
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

@coveralls
Copy link

coveralls commented Dec 19, 2023

Pull Request Test Coverage Report for Build 7280975929

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 12 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.01%) to 87.549%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 6 91.67%
crates/qasm2/src/parse.rs 6 97.6%
Totals Coverage Status
Change from base Build 7275149289: 0.01%
Covered Lines: 59155
Relevant Lines: 67568

💛 - Coveralls

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

As discussed in the Qiskit dev meeting, this seems fine. Just a question/comment about where dev information should go.

Comment on lines 9 to 11
These release notes get converted into Markdown files via the infrastructure at https://github.com/Qiskit/documentation, which then gets deployed to https://docs.quantum.ibm.com/api/qiskit/release-notes. Changes to these release notes will update those release notes the next time the API docs are generated.

To change release notes prior to Qiskit 0.45, update the Qiskit/documentation repository directly.
Copy link
Member

Choose a reason for hiding this comment

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

This appears to be a developer-facing comment - perhaps a better place would be the docs contributing guide? Alternatively, it could be a rST comment:

This page contains [...]

..
    These release notes [...]

I'm just thinking on the off-chance that this text starts getting used again at some point in the future as part of the docs build - we wouldn't this to accidentally start getting published.

@Eric-Arellano Eric-Arellano added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: None Do not include in changelog labels Dec 20, 2023
@jakelishman jakelishman added this pull request to the merge queue Dec 21, 2023
Merged via the queue into Qiskit:main with commit 22a372f Dec 21, 2023
13 checks passed
mergify bot pushed a commit that referenced this pull request Dec 21, 2023
* Remove Qiskit Terra 0.25 from release_notes.rst

* Review feedback: use a comment

(cherry picked from commit 22a372f)
github-merge-queue bot pushed a commit that referenced this pull request Dec 22, 2023
* Remove Qiskit Terra 0.25 from release_notes.rst

* Review feedback: use a comment

(cherry picked from commit 22a372f)

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
@Eric-Arellano Eric-Arellano deleted the rm-25-release-notes branch December 22, 2023 00:22
github-merge-queue bot pushed a commit to Qiskit/documentation that referenced this pull request Dec 29, 2023
This PR changes how we write the Qiskit `release-notes.html` to
correctly split the notes by version, updating the previous files if we
find any change. If we already have a file for the version we updated,
the script adds the new entries without overwriting the file and sorts
the entries by patch. If the patch we modified was already in the
version file, it substitutes its section for the new one.

Qiskit v0.45 has been regenerated using the new script to split
correctly versions 0.45 and 0.25 to remove the last one from the file.
Historical release notes files (< 0.45) will no longer be updated in the
regeneration. For more information see:
Qiskit/qiskit#11436

Command used:
`npm run gen-api -- -p qiskit -v 0.45.0 -a
https://github.com/Qiskit/qiskit/suites/17881600359/artifacts/1026798160`

Closes #359

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
This PR changes how we write the Qiskit `release-notes.html` to
correctly split the notes by version, updating the previous files if we
find any change. If we already have a file for the version we updated,
the script adds the new entries without overwriting the file and sorts
the entries by patch. If the patch we modified was already in the
version file, it substitutes its section for the new one.

Qiskit v0.45 has been regenerated using the new script to split
correctly versions 0.45 and 0.25 to remove the last one from the file.
Historical release notes files (< 0.45) will no longer be updated in the
regeneration. For more information see:
Qiskit/qiskit#11436

Command used:
`npm run gen-api -- -p qiskit -v 0.45.0 -a
https://github.com/Qiskit/qiskit/suites/17881600359/artifacts/1026798160`

Closes Qiskit#359

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
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 stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants