Skip to content

MAINT: Fix CIs#1046

Merged
larsoner merged 10 commits intosphinx-gallery:masterfrom
larsoner:cis
Nov 2, 2022
Merged

MAINT: Fix CIs#1046
larsoner merged 10 commits intosphinx-gallery:masterfrom
larsoner:cis

Conversation

@larsoner
Copy link
Copy Markdown
Contributor

@larsoner larsoner commented Nov 1, 2022

No description provided.

@larsoner larsoner changed the title WIP: Fix CIs MAINT: Fix CIs Nov 1, 2022
@larsoner
Copy link
Copy Markdown
Contributor Author

larsoner commented Nov 1, 2022

Okay as part of the fixes I put the Plotly example in its own folder, which I think makes it more discoverable like PyVista and mayavi

https://output.circle-artifacts.com/output/job/e965134e-607c-4b83-abec-f5f82c454109/artifacts/0/rtd_html/index.html

@lucyleeow feel free to merge if you're happy

Copy link
Copy Markdown
Contributor

@lucyleeow lucyleeow 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 doing this. Looks good, and I agree separating the plotly example is a good idea. I just had some questions.

Comment thread azure-pipelines.yml
- job: Skip
pool:
vmImage: 'ubuntu-18.04'
vmImage: 'ubuntu-latest'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Question - what does this job do?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just decides if all other steps should be skipped based on [skip azp] or [azp skip] being in the commit message

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, sorry my mis-understanding was more why would we need to specify/change the vmImage since this is just doing the skip?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Eventually we'd need to once they retire 18.04. by using latest, we hopefully won't need to update it again

sudo apt-get install --fix-missing python3-numpy python3-matplotlib python3-pip python3-coverage optipng graphviz \
libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0 libegl1 libosmesa6 mesa-utils libxcb-shape0
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r dev-requirements.txt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want the | cat at the end still?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, the output is easy enough to read without it

Comment thread continuous_integration/azure/install.sh Outdated
@@ -19,7 +19,7 @@ if [ "$DISTRIB" == "conda" ]; then
PIP_DEPENDENCIES="$@"
PIP_DEPENDENCIES="$PIP_DEPENDENCIES sphinx_rtd_theme check-manifest"
if [ "$PYTHON_VERSION" != "3.7" -o "$LOCALE" != "C" ]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we have any azure python 3.7 jobs now...?

python3 -m pip install -r dev-requirements.txt
python3 -m pip install "vtk<9.2" pyqt5
python3 -m pip install --no-build-isolation mayavi
python3 -c "import faulthandler; faulthandler.enable(); from mayavi import mlab; mlab.test_plot3d()"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe a comment as to why this is needed? 😬

libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libopengl0 libegl1 libosmesa6 mesa-utils libxcb-shape0
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -r dev-requirements.txt
python3 -m pip install "vtk<9.2" pyqt5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure. At some point a bigger refactoring of CIs to unify installations would be nice. But not in this PR :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

... oh actually, no we don't install them there. That is for the Windows job. These lines are used by the Linux job

* upstream/master:
  Reorder paragraphs in the minigallery documentation (sphinx-gallery#1048)
  Update advanced usage examples (sphinx-gallery#1045)
@larsoner larsoner enabled auto-merge (squash) November 2, 2022 15:38
@larsoner larsoner merged commit cfa1e2e into sphinx-gallery:master Nov 2, 2022
@larsoner larsoner deleted the cis branch November 2, 2022 15:47
larsoner added a commit to ayshih/sphinx-gallery that referenced this pull request Nov 2, 2022
* upstream/master:
  MAINT: Fix CIs (sphinx-gallery#1046)
  Reorder paragraphs in the minigallery documentation (sphinx-gallery#1048)
@lucyleeow
Copy link
Copy Markdown
Contributor

Thanks for answering my questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants