Skip to content

Commit 1d4f166

Browse files
committed
skip PDF export for s390x in jupyter minimal (3.11/3.12)
Signed-off-by: Nishan Acharya <[email protected]>
1 parent 2821ea8 commit 1d4f166

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

ci/cached-builds/gen_gha_matrix_jobs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
S390X_COMPATIBLE = {
3434
"runtime-minimal-ubi9-python-3.11",
3535
"runtime-minimal-ubi9-python-3.12",
36+
"jupyter-minimal-ubi9-python-3.11",
37+
"jupyter-minimal-ubi9-python-3.12",
3638
# add more here
3739
}
3840

jupyter/utils/install_pdf_deps.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ if [[ -z "${ARCH:-}" ]]; then
1717
exit 1
1818
fi
1919

20+
# Skip PDF export installation for s390x architecture
21+
if [[ "$(uname -m)" == "s390x" ]]; then
22+
echo "PDF export functionality is not supported on s390x architecture. Skipping installation."
23+
exit 0
24+
fi
25+
2026
# tex live installation
2127
echo "Installing TexLive to allow PDf export from Notebooks"
2228
curl -fL https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -o install-tl-unx.tar.gz

tests/containers/workbenches/jupyterlab/jupyterlab_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ def test_spinner_html_loaded(self, jupyterlab_image: conftest.Image) -> None:
5858
@allure.description("Check that PDF export is working correctly")
5959
def test_pdf_export(self, jupyterlab_image: conftest.Image) -> None:
6060
container = WorkbenchContainer(image=jupyterlab_image.name, user=4321, group_add=[0])
61+
# Skip if we're running on s390x architecture
62+
container.start(wait_for_readiness=False)
63+
try:
64+
exit_code, arch_output = container.exec(["uname", "-m"])
65+
if exit_code == 0 and arch_output.decode().strip() == "s390x":
66+
pytest.skip("PDF export functionality is not supported on s390x architecture")
67+
finally:
68+
docker_utils.NotebookContainer(container).stop(timeout=0)
6169
test_file_name = "test.ipybn"
6270
test_file_content = """{
6371
"cells": [

0 commit comments

Comments
 (0)