You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reading that binary files are particularly bad for Git repo size. Beyond Git repo size, the diff is annoying that ever time we generate dev API docs, we have unrelated image changes, like #2509.
So, see if we can make the images deterministic, even a few of them. We're not worried about changes resulting from when changes are made to the docs themselves, such as indexes shifting; the goal is that generating the same docs stays the same.
I'm not sure the particular ways to fix things, like the snippets to use. However, Qiskit tests often use techniques like setting the seed (for random number generation) to be deterministic. You can test if your fix worked by re-generating the Sphinx docs in the Qiskit and Runtime repositories with tox -e docs-clean; tox -e docs.
Update Jan 10, 2025: this is less urgent because of AVIF images making images ~10% the size. However, it's still good to fix.
The text was updated successfully, but these errors were encountered:
I'm reading that binary files are particularly bad for Git repo size. Beyond Git repo size, the diff is annoying that ever time we generate dev API docs, we have unrelated image changes, like #2509.
So, see if we can make the images deterministic, even a few of them. We're not worried about changes resulting from when changes are made to the docs themselves, such as indexes shifting; the goal is that generating the same docs stays the same.
I'm not sure the particular ways to fix things, like the snippets to use. However, Qiskit tests often use techniques like setting the seed (for random number generation) to be deterministic. You can test if your fix worked by re-generating the Sphinx docs in the Qiskit and Runtime repositories with
tox -e docs-clean; tox -e docs
.Update Jan 10, 2025: this is less urgent because of AVIF images making images ~10% the size. However, it's still good to fix.
The text was updated successfully, but these errors were encountered: