Skip to content

Update Tekton files to version v2.x.1 #1146

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

Open
wants to merge 95 commits into
base: test-1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
b04c80a
creating jupyter minimal python 3.12 image
dibryant May 8, 2025
14c4e5d
Merge pull request #1045 from dibryant/rhoaieng24411
openshift-merge-bot[bot] May 28, 2025
934164b
creating jupyter datascience python 3.12 image
dibryant May 28, 2025
679b480
creating jupyter pytorch python 3.12 image
dibryant May 29, 2025
c334bd6
Merge pull request #1137 from dibryant/rhoaieng24438
openshift-merge-bot[bot] Jun 2, 2025
357ab0a
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jun 4, 2025
858b1b8
RHOAIENG-16568: [Bug] Unable to download notebook as a PDF from Jupyt…
jesuino Jun 4, 2025
8f1bda8
Merge pull request #1138 from dibryant/rhoaieng24471
openshift-merge-bot[bot] Jun 9, 2025
e98a63e
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jun 11, 2025
c5610d1
RHOAIENG-717: fix `image-tag-outdated` annotation description in `wor…
jiridanek Jun 12, 2025
8422ed2
NO-JIRA: add GitHub user `kryanbeane` to trusted contributors in `bui…
jiridanek Jun 13, 2025
1a03fb2
NO-JIRA: disable diagrams and poem by creating `.coderabbit.yaml` (#1…
jiridanek Jun 13, 2025
b7d00d7
Exiting PDF install script with error code if commands fail (#1148)
jesuino Jun 13, 2025
463ab61
RHOAIENG-26702: Update codeflare-sdk versions and shas for v0.29.0 (#…
kryanbeane Jun 13, 2025
6118da9
RHOAIENG-26264: fix automatic updates of commit-latest.env references…
jiridanek Jun 16, 2025
eeeaf90
ci: update commit SHAs for image digests changes
github-actions[bot] Jun 16, 2025
6830bda
RHOAISTRAT-169: add conditional package install in minimal Dockerfile…
Nash-123 Jun 17, 2025
45e85f5
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jun 18, 2025
aa65c62
RHOAIENG-26264: throttle concurrent skopeo invocations to at most 22 …
jiridanek Jun 18, 2025
3ca4289
NO-JIRA: add `mtchoum1` as registered contributor who can run `build-…
jiridanek Jun 18, 2025
bd044ba
NO-JIRA: add @obrown1205 as registered contributor who can run build-…
jiridanek Jun 20, 2025
61c8d5b
Refactor: Reduce duplication in Dockerfile.cpu package installation (…
jiridanek Jun 20, 2025
f083142
RHOAISTRAT-169: add s390x testing to CI using QEMU and `podman build …
jiridanek Jun 20, 2025
d032562
Change RHOAI version from 2.21 to 2.22
daniellutz Jun 20, 2025
4973f9b
Update image related sha digests via notebooks-digest-updater GitHub …
github-actions[bot] Jun 20, 2025
d7667f7
Merge pull request #1177 from opendatahub-io/tmp-digest-sync-15785817718
harshad16 Jun 20, 2025
9c43179
Merge pull request #1176 from daniellutz/fix-rhoai-version
harshad16 Jun 20, 2025
aef052c
NO-JIRA: del(/.tekton): delete unused .tekton/image-registry.yaml (#1…
jiridanek Jun 23, 2025
a2225df
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jun 25, 2025
eab617a
RHOAIENG-26843, RHOAIENG-26066: tests: add scikit-learn smoke test (#…
jiridanek Jun 25, 2025
25728a0
NO-JIRA: add @dependabot as registered contributor in `build-notebook…
jiridanek Jun 25, 2025
9c66df6
RHOAIENG-26843: tests(trustyai): add trustyai compatibility smoke tes…
jiridanek Jun 25, 2025
e4ed592
NO-JIRA: add @ide-developer as registered project contributor to `bui…
jiridanek Jun 25, 2025
beb87d2
RHOAIENG-26843, RHOAIENG-26066 : chore(deps): bump scikit-learn from …
dependabot[bot] Jun 25, 2025
12e25ab
RHOAIENG-16955: chore(deps): bump setuptools from 75.8.2 to 78.1.1 in…
dependabot[bot] Jun 26, 2025
8e8a35b
NO-JIRA: add RStudio image directories for updating Pipfile.locks to …
jiridanek Jun 26, 2025
99a7edd
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jun 26, 2025
0e95139
NO-JIRA: update development dependencies in `pnpm-lock.yaml` and `pac…
jiridanek Jun 26, 2025
52bf022
NO-JIRA: adjust HttpWaitStrategy path in `codeserver.spec.ts` because…
jiridanek Jun 26, 2025
859258d
RHOAIENG-26066, RHOAIENG-18548, RHOAIENG-18919: bump Tornado to 6.5.1…
jiridanek Jun 27, 2025
a19d8b2
[RHOAIENG-24973] [RHOAIENG-26615] Create workflows to automate notebo…
mtchoum1 Jun 27, 2025
796cfa4
RHOAIENG-26066: chore(deps): bump transformers from 4.49.0 to 4.50.0 …
dependabot[bot] Jun 27, 2025
a2448c3
RHOAIENG-18535, RHOAIENG-11812, RHOAIENG-18601, RHOAIENG-18613: bump …
jiridanek Jun 27, 2025
ae194dd
RHOAIENG-18928, RHOAIENG-12058, RHOAIENG-19016, RHOAIENG-9171, RHOAIE…
dependabot[bot] Jun 28, 2025
d52bd1d
NO-JIRA: add `--verbose` flag to `pipenv lock` command in Makefile (#…
jiridanek Jun 28, 2025
82f5dd9
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jun 28, 2025
a634a56
chore: add build_arh on the container engine build command
atheo89 Jun 30, 2025
03430e9
Fix code static analysis issues
atheo89 Jun 30, 2025
dc9b96a
Update build-notebooks-TEMPLATE with platform BUILD_ARG change
atheo89 Jun 30, 2025
041dd48
Merge pull request #1230 from opendatahub-io/python-3.12
jiridanek Jun 30, 2025
6d58a90
Merge pull request #1229 from atheo89/build-arch
openshift-merge-bot[bot] Jul 1, 2025
f6b7e08
RHOAIENG-26921: Create Jupyter Tensorflow Python 3.12 Image (#1151)
dibryant Jul 1, 2025
889ba72
RHOAIENG-28514, RHOAIENG-28513: incorporate python-3.12 workbench ima…
jiridanek Jul 1, 2025
a6b939d
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 2, 2025
77215ff
RHOAIENG-27435: Create Rocm Pytorch Python 3.12 Image (#1249)
dibryant Jul 2, 2025
6300362
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 2, 2025
bce04f9
NO-JIRA fix(gha): prevent misleading compsize error in CI (#1257)
jiridanek Jul 2, 2025
db1a1ce
Allow install_pdf_deps.sh to work for multiarch
grdryn Jul 2, 2025
d2fcf92
Install PDF deps where missing in 3.12 builds
grdryn Jul 3, 2025
52efe0d
Merge pull request #1260 from grdryn/multiarch-texlive-pandoc
openshift-merge-bot[bot] Jul 3, 2025
1a14a81
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 3, 2025
ddcab5e
RHOAIENG-22962: add code-server python 3.12 image (#1269)
jiridanek Jul 3, 2025
2cd66bc
NO-JIRA: configure kubelet to disable image garbage collection in kub…
jiridanek Jul 7, 2025
f2ea720
NO-JIRA: update Trivy version in CI and improve comments (#1328)
jiridanek Jul 7, 2025
c4910e0
Revert "RHOAIENG-16076: tests(gha): pre-pull trivy vulnerabilities db…
jiridanek Jul 7, 2025
480f20a
RHOAIENG-28774: add arm64 image support in CI scripts and GitHub Acti…
jiridanek Jul 7, 2025
b6d25cb
NO-JIRA: add(gha): trivy security scanning of filesystem sources (#1324)
jiridanek Jul 7, 2025
758b444
RHOAIENG-28774: allow ODH codeserver image to be built for arm64 (#1258)
grdryn Jul 7, 2025
bfef720
RHOAIENG-28848: Create Jupyter TrustyAI Python 3.12 Image (#1306)
dibryant Jul 8, 2025
2643d27
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 8, 2025
53c7b62
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 9, 2025
6e0a8bf
RHOAIENG-28583: create Runtime Pipeline images for Python 3.12 (#1333)
dibryant Jul 9, 2025
d19dcb0
update notebook's pipfile to sync with Codeflare-SDK release 0.30.0 (…
jiridanek Jul 9, 2025
b1eb8e7
RHOAIENG-28509: release new version of odh-elyra to get fix for RHOAI…
jesuino Jul 9, 2025
bd4a97c
RHOAIENG-28188: add .tekton/ files for version 2025a-v1.34 (#1365)
odh-devops-app[bot] Jul 9, 2025
8bfa058
ISSUE #1371: remove stray backslash from `odh-workbench-jupyter-pytor…
jiridanek Jul 9, 2025
bcf35e2
update codeserver Python 3.12 `Dockerfile` for `TARGETARCH` (#1357)
jiridanek Jul 9, 2025
03c270f
Update `overlays/additional` directory for the upcoming Release (Pyth…
atheo89 Jul 9, 2025
74e7931
Add some missing images on the py312 all-images target
atheo89 Jul 10, 2025
a10c177
Fix insta-merge yamllint issues
atheo89 Jul 10, 2025
0b99d37
ISSUE #1370: fix(gha): adjust yaml lint rule and ensure newline consi…
jiridanek Jul 10, 2025
c2c4daa
ISSUE #1358: fix(gha): include platform in Playwright report artifact…
jiridanek Jul 10, 2025
cd822b9
ISSUE #1292: fix typos in codeserver documentation and comments (#1376)
jiridanek Jul 11, 2025
740a5e5
update params-latest.env file to konflux builds and include also the …
jiridanek Jul 11, 2025
f291864
Update Tekton output-image tags to version 2025a-v1.34 (#1378)
odh-devops-app[bot] Jul 11, 2025
cf9833b
RHOAIENG-28512: add py312 .tekton push pipelines (#1379)
jiridanek Jul 11, 2025
3e9fcaa
refactor(gha, makefile): improve piplock renewal process log printout…
jiridanek Jul 11, 2025
befce16
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 11, 2025
e2d781b
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jul 11, 2025
7e1a88c
ignore yamllint in konflux insta-merge.yaml file (#1387)
grdryn Jul 11, 2025
b1d3f55
Merge pull request #1372 from atheo89/chore-makefile
openshift-merge-bot[bot] Jul 11, 2025
05d6ed5
RHOAIENG-28654: allow using CUDA rpm repos for amd64 and arm64 (#1320)
grdryn Jul 11, 2025
a2311e1
Remove runtime-tensorflow-rocm-py312 from the manifests (#1390)
atheo89 Jul 14, 2025
c4329db
add @jesuino to OWNERS (#1245)
jiridanek Jul 14, 2025
c43e156
Update Tekton output-image tags to version 2025a-v1.34
github-actions[bot] Jul 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
language: en-US
early_access: false
enable_free_tier: true
reviews:
sequence_diagrams: false
poem: false
171 changes: 98 additions & 73 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ name: Build & Publish Notebook Servers (TEMPLATE)
required: true
description: "make target to build"
type: string
python:
required: true
description: "python version"
type: string
github:
required: true
description: "top workflow's `github`"
type: string
platform:
required: true
description: "platform to build, podman build --platform="
type: string
subscription:
required: false
default: false
Expand All @@ -23,9 +31,10 @@ name: Build & Publish Notebook Servers (TEMPLATE)

jobs:
build:
runs-on: ubuntu-24.04
# https://docs.github.com/en/actions/how-tos/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
runs-on: ${{ inputs.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
env:
# Some pieces of code (image pulls for example) in podman consult TMPDIR or default to /var/tmp
# Some pieces of code (image pulls, for example) in podman consult TMPDIR or default to /var/tmp
TMPDIR: /home/runner/.local/share/containers/tmpdir
# Use the rootful instance of podman for sharing images with cri-o
# https://podman-desktop.io/blog/sharing-podman-images-with-kubernetes-cluster#introduction
Expand All @@ -35,10 +44,12 @@ jobs:
IMAGE_REGISTRY: "ghcr.io/${{ github.repository }}/workbench-images"
# GitHub image registry used for storing $(CONTAINER_ENGINE)'s cache
CACHE: "ghcr.io/${{ github.repository }}/workbench-images/build-cache"
TRIVY_VERSION: 0.57.1
TRIVY_VULNDB: "/home/runner/.local/share/containers/trivy_db"
TRIVY_VERSION: 0.64.1
# Targets (and their folder) that should be scanned using FS instead of IMAGE scan due to resource constraints
TRIVY_SCAN_FS_JSON: '{}'
# Makefile variables
BUILD_ARCH: ${{ inputs.platform }}
RELEASE_PYTHON_VERSION: ${{ inputs.python }}

steps:

Expand All @@ -57,6 +68,12 @@ jobs:
with:
ref: "refs/pull/${{ fromJson(inputs.github).event.number }}/merge"

- name: Set up QEMU to build linux/s390x
if: ${{ inputs.platform == 'linux/s390x' }}
uses: docker/setup-qemu-action@v3
with:
platforms: s390x

- run: mkdir -p $TMPDIR

# do this early because it's fast and why not
Expand Down Expand Up @@ -129,7 +146,8 @@ jobs:

df -h

- run: sudo apt-get install -y btrfs-compsize
- id: install-compsize
run: sudo apt-get install -y btrfs-compsize

- name: Mount lvm overlay for podman builds
run: |
Expand All @@ -150,17 +168,34 @@ jobs:
run: sudo apt-get -qq remove podman crun

- uses: actions/cache@v4
# https://docs.github.com/en/actions/reference/variables-reference#default-environment-variables
# https://docs.github.com/en/actions/how-tos/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables
id: cached-linuxbrew
with:
path: /home/linuxbrew/.linuxbrew
key: linuxbrew
key: linuxbrew-${{ runner.os }}-${{ runner.arch }}

- name: Install podman
if: steps.cached-linuxbrew.outputs.cache-hit != 'true'
- name: Install podman (linux/amd64)
if: inputs.platform == 'linux/amd64' && steps.cached-linuxbrew.outputs.cache-hit != 'true'
run: |
/bin/bash -c "$(curl -fsSL https://github.com/Homebrew/install/HEAD/install.sh)"
/home/linuxbrew/.linuxbrew/bin/brew install podman

# Warning: Your CPU architecture (arm64) is not supported. We only support
# x86_64 CPU architectures. You will be unable to use binary packages (bottles).
#
# This is a Tier 2 configuration:
# https://docs.brew.sh/Support-Tiers#tier-2
# Do not report any issues to Homebrew/* repositories!
# Read the above document instead before opening any issues or PRs.
- name: Install podman (linux/arm64)
if: inputs.platform == 'linux/arm64' && steps.cached-linuxbrew.outputs.cache-hit != 'true'
# Error: podman: no bottle available!
# If you're feeling brave, you can try to install from source with:
run: |
/bin/bash -c "$(curl -fsSL https://github.com/Homebrew/install/HEAD/install.sh)"
/home/linuxbrew/.linuxbrew/bin/brew install --build-from-source podman

- name: Add linuxbrew to PATH
run: echo "/home/linuxbrew/.linuxbrew/bin/" >> $GITHUB_PATH

Expand Down Expand Up @@ -227,67 +262,24 @@ jobs:
echo "IMAGE_TAG=${IMAGE_TAG}" >> "$GITHUB_OUTPUT"
echo "OUTPUT_IMAGE=${{ env.IMAGE_REGISTRY}}:${{ inputs.target }}-${IMAGE_TAG}" >> "$GITHUB_OUTPUT"

echo "SANITIZED_PLATFORM=$(echo "${{ inputs.platform }}" | sed 's/[^a-zA-Z0-9._-]/_/g')" >> "$GITHUB_OUTPUT"

# endregion

# region Trivy init & DB pre-pull
# region Image build

- name: "pull_request|schedule: resolve target if Trivy scan should run"
id: resolve-target
if: ${{ fromJson(inputs.github).event_name == 'pull_request' || fromJson(inputs.github).event_name == 'schedule' }}
env:
EVENT_NAME: ${{ fromJson(inputs.github).event_name }}
HAS_TRIVY_LABEL: ${{ contains(fromJson(inputs.github).event.pull_request.labels.*.name, 'trivy-scan') }}
FS_SCAN_FOLDER: ${{ fromJson(env.TRIVY_SCAN_FS_JSON)[inputs.target] }}
- name: Compute extra podman build args
id: extra-podman-build-args
run: |
if [[ "$EVENT_NAME" == "pull_request" && "$HAS_TRIVY_LABEL" == "true" ]]; then
if [[ -n "$FS_SCAN_FOLDER" ]]; then
TARGET="$FS_SCAN_FOLDER"
TYPE="fs"
else
TARGET="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
TYPE="image"
fi
elif [[ "$EVENT_NAME" == "schedule" ]]; then
if [[ -n "$FS_SCAN_FOLDER" ]]; then
TARGET="$FS_SCAN_FOLDER"
TYPE="fs"
else
TARGET="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
TYPE="image"
fi
fi
set -Eeuxo pipefail

if [[ -n "$TARGET" ]]; then
echo "target=$TARGET" >> $GITHUB_OUTPUT
echo "type=$TYPE" >> $GITHUB_OUTPUT
echo "Trivy scan will run on $TARGET ($TYPE)"
else
echo "Trivy scan won't run"
EXTRA_PODMAN_BUILD_ARGS=""
if [[ "${{ inputs.platform }}" == "linux/s390x" ]]; then
# workaround for known issue https://github.com/zeromq/libzmq/pull/4486
# In qemu-user, CACHELINE_SIZE probe is undefined
EXTRA_PODMAN_BUILD_ARGS+='--env=CXXFLAGS=-Dundefined=64'
fi

# only one db can be downloaded in one call https://github.com/aquasecurity/trivy/issues/3616
- name: Pre-pull Trivy vulnerabilities DB
if: ${{ steps.resolve-target.outputs.target }}
run: |
mkdir ${TRIVY_VULNDB}
podman run --rm \
--env PODMAN_SOCK \
-v ${TRIVY_VULNDB}:/cache \
docker.io/aquasec/trivy:$TRIVY_VERSION \
--cache-dir /cache \
image \
--download-db-only
podman run --rm \
--env PODMAN_SOCK \
-v ${TRIVY_VULNDB}:/cache \
docker.io/aquasec/trivy:$TRIVY_VERSION \
--cache-dir /cache \
image \
--download-java-db-only

# endregion

# region Image build
echo "EXTRA_PODMAN_BUILD_ARGS=$EXTRA_PODMAN_BUILD_ARGS" >> $GITHUB_OUTPUT

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
Expand All @@ -303,7 +295,7 @@ jobs:
fromJson(inputs.github).event_name == 'workflow_dispatch' }}
env:
IMAGE_TAG: "${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
CONTAINER_BUILD_CACHE_ARGS: "--cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
CONTAINER_BUILD_CACHE_ARGS: "${{ steps.extra-podman-build-args.outputs.EXTRA_PODMAN_BUILD_ARGS }} --cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
- name: "pull_request: make ${{ inputs.target }}"
run: |
# print running stats on disk occupancy
Expand All @@ -314,7 +306,7 @@ jobs:
fromJson(inputs.github).event_name == 'pull_request_target' }}"
env:
IMAGE_TAG: "${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
CONTAINER_BUILD_CACHE_ARGS: "--cache-from ${{ env.CACHE }}"
CONTAINER_BUILD_CACHE_ARGS: "${{ steps.extra-podman-build-args.outputs.EXTRA_PODMAN_BUILD_ARGS }} --cache-from ${{ env.CACHE }}"
# We don't have access to image registry, so disable pushing
PUSH_IMAGES: "no"

Expand Down Expand Up @@ -504,7 +496,9 @@ jobs:
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

- name: "Run image tests"
if: ${{ steps.have-tests.outputs.tests == 'true' }}
# skip on s390x because we are unable to install requirements-elyra.txt that's installed by runtime image tests
# https://github.com/opendatahub-io/elyra/refs/heads/main/etc/generic/requirements-elyra.txt
if: ${{ steps.have-tests.outputs.tests == 'true' && !contains(fromJSON('["linux/s390x"]'), inputs.platform) }}
run: python3 ci/cached-builds/make_test.py --target ${{ inputs.target }}
env:
IMAGE_TAG: "${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
Expand All @@ -527,6 +521,40 @@ jobs:

# region Trivy vulnerability scan

- name: "pull_request|schedule: resolve target if Trivy scan should run"
id: resolve-target
if: ${{ fromJson(inputs.github).event_name == 'pull_request' || fromJson(inputs.github).event_name == 'schedule' }}
env:
EVENT_NAME: ${{ fromJson(inputs.github).event_name }}
HAS_TRIVY_LABEL: ${{ contains(fromJson(inputs.github).event.pull_request.labels.*.name, 'trivy-scan') }}
FS_SCAN_FOLDER: ${{ fromJson(env.TRIVY_SCAN_FS_JSON)[inputs.target] }}
run: |
if [[ "$EVENT_NAME" == "pull_request" && "$HAS_TRIVY_LABEL" == "true" ]]; then
if [[ -n "$FS_SCAN_FOLDER" ]]; then
TARGET="$FS_SCAN_FOLDER"
TYPE="fs"
else
TARGET="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
TYPE="image"
fi
elif [[ "$EVENT_NAME" == "schedule" ]]; then
if [[ -n "$FS_SCAN_FOLDER" ]]; then
TARGET="$FS_SCAN_FOLDER"
TYPE="fs"
else
TARGET="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
TYPE="image"
fi
fi

if [[ -n "$TARGET" ]]; then
echo "target=$TARGET" >> $GITHUB_OUTPUT
echo "type=$TYPE" >> $GITHUB_OUTPUT
echo "Trivy scan will run on $TARGET ($TYPE)"
else
echo "Trivy scan won't run"
fi

- name: Run Trivy vulnerability scanner
if: ${{ steps.resolve-target.outputs.target }}
run: |
Expand Down Expand Up @@ -555,12 +583,9 @@ jobs:
podman run --rm \
$PODMAN_ARGS \
-v ${REPORT_FOLDER}:/report \
-v ${TRIVY_VULNDB}:/cache \
docker.io/aquasec/trivy:$TRIVY_VERSION \
--cache-dir /cache \
$SCAN_TYPE \
$SCAN_ARGS \
--skip-db-update \
--scanners vuln --ignore-unfixed \
--exit-code 0 --timeout 30m \
--format template --template "@/report/$REPORT_TEMPLATE" -o /report/$REPORT_FILE \
Expand Down Expand Up @@ -631,7 +656,7 @@ jobs:
# --ipc=host because Microsoft says so in Playwright docs
# --net=host because testcontainers connects to the Reaper container's exposed port
# we need to pass through the relevant environment variables
# DEBUG configures nodejs debuggers, sets different verbosity as needed
# DEBUG configures Node.js debuggers, sets different verbosity as needed
# CI=true is set on every CI nowadays
# PODMAN_SOCK should be mounted to /var/run/docker.sock, other likely mounting locations may not exist (mkdir -p)
# TEST_TARGET is the workbench image the test will run
Expand All @@ -649,7 +674,7 @@ jobs:
--volume ${PODMAN_SOCK}:/var/run/docker.sock \
--volume ${PWD}:/mnt \
--volume /mnt/node_modules \
mcr.microsoft.com/playwright:v1.52.0-noble \
mcr.microsoft.com/playwright:v1.53.1-noble \
/bin/bash <<EOF
set -Eeuxo pipefail
cd /mnt
Expand All @@ -663,7 +688,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() && fromJson(inputs.github).event_name == 'pull_request' && contains(inputs.target, 'codeserver') }}
with:
name: "${{ inputs.target }}_playwright-report"
name: "${{ inputs.target }}_${{ steps.calculated_vars.outputs.SANITIZED_PLATFORM }}_playwright-report"
path: tests/browser/playwright-report/
retention-days: 30

Expand All @@ -673,4 +698,4 @@ jobs:
if: "${{ !cancelled() }}"

- run: sudo compsize -x "${HOME}/.local/share/containers"
if: "${{ !cancelled() }}"
if: "${{ !cancelled() && steps.install-compsize.outcome == 'success' }}"
4 changes: 3 additions & 1 deletion .github/workflows/build-notebooks-pr-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
env:
# language=json
contributors: |
["atheo89", "andyatmiami", "caponetto", "daniellutz", "dibryant", "harshad16", "jesuino", "jiridanek", "jstourac", "paulovmr", "Fiona-Waters", "grdryn"]
["atheo89", "andyatmiami", "caponetto", "daniellutz", "dibryant", "harshad16", "jesuino", "jiridanek", "jstourac", "paulovmr", "Fiona-Waters", "grdryn", "kryanbeane", "mtchoum1", "obrown1205", "dependabot[bot]", "ide-developer"]

jobs:
gen:
Expand Down Expand Up @@ -70,6 +70,8 @@ jobs:
if: ${{ fromJson(needs.gen.outputs.has_jobs) }}
with:
target: "${{ matrix.target }}"
python: "${{ matrix.python }}"
github: "${{ toJSON(github) }}"
platform: "${{ matrix.platform }}"
subscription: "${{ matrix.subscription }}"
secrets: inherit
5 changes: 4 additions & 1 deletion .github/workflows/build-notebooks-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
python3 ci/cached-builds/gen_gha_matrix_jobs.py \
--from-ref 'origin/${{ github.event.pull_request.base.ref }}' \
--to-ref '${{ github.event.pull_request.head.ref }}' \
--rhel-images exclude
--rhel-images exclude \
--s390x-images include
id: gen
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -55,6 +56,8 @@ jobs:
if: ${{ fromJson(needs.gen.outputs.has_jobs) }}
with:
target: "${{ matrix.target }}"
python: "${{ matrix.python }}"
github: "${{ toJSON(github) }}"
platform: "${{ matrix.platform }}"
subscription: "${{ matrix.subscription }}"
secrets: inherit
5 changes: 4 additions & 1 deletion .github/workflows/build-notebooks-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- name: Determine targets to build (we want to build everything on push)
run: |
set -x
python3 ci/cached-builds/gen_gha_matrix_jobs.py
python3 ci/cached-builds/gen_gha_matrix_jobs.py \
--s390x-images include
id: gen
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -44,6 +45,8 @@ jobs:
if: ${{ fromJson(needs.gen.outputs.has_jobs) }}
with:
target: "${{ matrix.target }}"
python: "${{ matrix.python }}"
github: "${{ toJSON(github) }}"
platform: "${{ matrix.platform }}"
subscription: "${{ matrix.subscription }}"
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ jobs:
id: validate-yaml-files
run: |
type yamllint || sudo apt-get -y install yamllint
# We ignore the .tekton directory with the konflux pipelines definitions as it's managed by devops (and usually violates rules...).
find . -name "*.yaml" | grep -v "./.tekton/" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml
# We ignore the insta-merge.yaml and .tekton directory with the konflux pipelines definitions as it's managed by devops (and usually violates rules...).
find . -name "*.yaml" | grep -v "./.tekton/" | grep -v "./.github/workflows/insta-merge.yaml" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml
find . -name "*.yml" | grep -v "./.tekton/" | xargs yamllint --strict --config-file ./ci/yamllint-config.yaml

# In some YAML files we use JSON strings, let's check these
Expand Down
Loading
Loading