Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ec49192
NO-JIRA: fix(ci): update the way we check for the rocm version
jstourac Mar 21, 2025
1bd07a6
Merge pull request #984 from jstourac/updateRocmCheck
openshift-merge-bot[bot] Mar 21, 2025
b41802d
RHOAIENG-21691: mitigate undesirable `/opt/app-root` ownership and pe…
jiridanek Mar 16, 2025
1bec78c
ISSUE-922: chore(tests/containers): implement retry if port-forwardin…
jiridanek Mar 21, 2025
d5f7f83
Merge pull request #987 from jiridanek/jd_fix_proxy__
openshift-merge-bot[bot] Mar 24, 2025
2c18a50
Merge pull request #986 from jiridanek/jd_fix_perms
openshift-merge-bot[bot] Mar 24, 2025
d775879
Merge pull request #982 from jiridanek/jd_merge_in_rhds_rstudio___
openshift-merge-bot[bot] Mar 25, 2025
d69c115
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Mar 26, 2025
6a20f2b
NO-JIRA: chore(tests/): fix running rstudio rhel9 Makefile image test…
jiridanek Mar 26, 2025
02e6ef3
NO-JIRA: fix(manifests/): torch version in `jupyter-rocm-pytorch-note…
jiridanek Mar 26, 2025
f42e162
RHOAIENG-22439: fix(manifests/rstudio): dismantle the broken RStudio …
jiridanek Mar 27, 2025
4764bd5
RHOAIENG-21740: Perform filesystem permission check on images
jstourac Mar 25, 2025
4ce55a2
Merge pull request #992 from jstourac/basicTestPermissions
openshift-merge-bot[bot] Mar 28, 2025
fca93da
[GHA] Enhance the checks for the kustomization.yaml files
jstourac Sep 9, 2024
cb5dc04
Merge pull request #993 from jiridanek/jd_rstudio_build_config
openshift-merge-bot[bot] Mar 28, 2025
4c32c9c
Update Konflux references (#997)
red-hat-konflux[bot] Mar 31, 2025
74402f0
Merge pull request #995 from jstourac/kustomize2
openshift-merge-bot[bot] Apr 1, 2025
6d0d410
NO-ISSUE: chore(GHA): add skopeo retry in case it fails first time
jstourac Apr 1, 2025
05b6fba
NO-ISSUE: chore(GHA): update expected image size for 2025.1 version
jstourac Apr 1, 2025
8a472fd
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Apr 2, 2025
0e975a2
RHOAIENG-17006: chore(pyproject.toml): migrate test dependencies from…
jiridanek Apr 6, 2025
18ed8c8
Update Konflux references (#1003)
red-hat-konflux[bot] Apr 6, 2025
ad3abe7
RHOAIENG-22425: chore(konflux): implement nudging to keep a (separate…
jiridanek Mar 30, 2025
56dd2dc
NO-JIRA: chore(gha): add Fiona-Waters to allowlist in build-notebooks…
jiridanek Apr 7, 2025
665117f
Merge pull request #1005 from jiridanek/jd_add_nudges
openshift-merge-bot[bot] Apr 7, 2025
fc76e82
Merge pull request #1006 from opendatahub-io/jiridanek-patch-1
openshift-merge-bot[bot] Apr 7, 2025
c7e44ae
Updated notebooks via odh-sync-updater-14268015392 GitHub action (#1002)
Fiona-Waters Apr 8, 2025
bae6808
NO-JIRA: chore(ci): add pre-commit checks for Python code
jiridanek Jan 29, 2025
449c899
Merge pull request #1007 from jiridanek/jd_precommit_update_reqirements
openshift-merge-bot[bot] Apr 8, 2025
eb02342
NO-JIRA: chore(pyright): fix types in the checked code so that Pyrigh…
jiridanek Apr 8, 2025
21a77ad
Merge pull request #1000 from jstourac/updateExpectedImageSize
openshift-merge-bot[bot] Apr 8, 2025
1f9731b
NO-JIRA: chore(ruff): fix indentation and linting in the checked code…
jiridanek Apr 8, 2025
9d8f1b4
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Apr 9, 2025
d734ddd
NO-JIRA: chore(Makefile): update the default image version
jstourac Apr 9, 2025
5216588
NO-JIRA: chore(CONTRIBUTING.md): add links to our openshift-ci configs
jstourac Apr 9, 2025
ceced17
Merge pull request #1011 from jstourac/updates
openshift-merge-bot[bot] Apr 10, 2025
37268e8
Update file via tmp-runtimes-sync-14379142856 GitHub action (#1014)
github-actions[bot] Apr 10, 2025
35d6e9d
RHOAIENG-20241: fix the CI check for the runtime image definition
jstourac Apr 10, 2025
dfc2bf7
Remove .json files runtimes from DS notebook & removed the COPY instr…
atheo89 Apr 10, 2025
a2d91e6
Merge pull request #1013 from jstourac/fixRuntimeImageCheck
openshift-merge-bot[bot] Apr 11, 2025
4e17ba3
NO-JIRA: add a 'release' label to our images
jstourac Apr 9, 2025
bffc13a
Fix Tensorboard frame height on Jupyter Notebooks
daniellutz Apr 15, 2025
c4968cd
Merge notebooks digest updater gha with runtimes updater
atheo89 Apr 14, 2025
cd4227c
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Apr 16, 2025
439d81a
address review comments
atheo89 Apr 16, 2025
ed90fe3
Merge pull request #1019 from atheo89/unify-gha
openshift-merge-bot[bot] Apr 16, 2025
6b13011
Remove IFrame fix and replace the paternfly.min.css with patternfly-n…
daniellutz Apr 16, 2025
36f11c6
Merge pull request #1018 from daniellutz/fix-tensorboard-frame-height
daniellutz Apr 16, 2025
1244b2f
update the code to update the commit file properly
atheo89 Apr 16, 2025
b38759a
Merge pull request #1021 from atheo89/follow-up-commit
daniellutz Apr 16, 2025
455bcd9
Merge branch 'main' of opendatahub-io/notebooks into sync-main
daniellutz Apr 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ trim_trailing_whitespace = true

[Makefile]
indent_style = tab

[*.py]
max_line_length = 120
35 changes: 13 additions & 22 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ jobs:
TRIVY_VULNDB: "/home/runner/.local/share/containers/trivy_db"
# Targets (and their folder) that should be scanned using FS instead of IMAGE scan due to resource constraints
TRIVY_SCAN_FS_JSON: '{}'
# Poetry version for use in running tests
POETRY_VERSION: '2.0.0'

steps:

Expand Down Expand Up @@ -315,33 +313,26 @@ jobs:

# region Pytest image tests

- name: Install poetry
if: steps.cache-poetry-restore.outputs.cache-hit != 'true'
run: pipx install poetry==${{ env.POETRY_VERSION }}
env:
PIPX_HOME: /home/runner/.local/pipx
PIPX_BIN_DIR: /home/runner/.local/bin

- name: Check poetry is installed correctly
run: poetry env info

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
# https://github.com/astral-sh/setup-uv
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.12'
cache: 'poetry'
version: "latest"
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "uv.lock"
pyproject-file: "pyproject.toml"

- name: Configure poetry
run: poetry env use "${{ steps.setup-python.outputs.python-path }}"
- name: Check uv is installed correctly
run: uv version

- name: Install deps
run: poetry install --sync
run: uv sync --locked

- name: Run Testcontainers container tests (in PyTest)
run: |
set -Eeuxo pipefail
poetry run pytest --capture=fd tests/containers -m 'not openshift' --image="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
uv run pytest --capture=fd tests/containers -m 'not openshift' --image="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
env:
DOCKER_HOST: "unix:///var/run/podman/podman.sock"
TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE: "/var/run/podman/podman.sock"
Expand Down Expand Up @@ -511,7 +502,7 @@ jobs:
if: ${{ steps.have-tests.outputs.tests == 'true' }}
run: |
set -Eeuxo pipefail
poetry run pytest --capture=fd tests/containers -m 'openshift' --image="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
uv run pytest --capture=fd tests/containers -m 'openshift' --image="${{ steps.calculated_vars.outputs.OUTPUT_IMAGE }}"
env:
# TODO(jdanek): this Testcontainers stuff should not be necessary but currently it has to be there
DOCKER_HOST: "unix:///var/run/podman/podman.sock"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-notebooks-pr-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
env:
# language=json
contributors: |
["atheo89", "andyatmiami", "caponetto", "daniellutz", "dibryant", "harshad16", "jesuino", "jiridanek", "jstourac", "paulovmr"]
["atheo89", "andyatmiami", "caponetto", "daniellutz", "dibryant", "harshad16", "jesuino", "jiridanek", "jstourac", "paulovmr", "Fiona-Waters"]

jobs:
gen:
Expand Down
70 changes: 18 additions & 52 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,49 +31,31 @@ jobs:

pytest-tests:
runs-on: ubuntu-latest
env:
poetry_version: '1.8.3'
steps:
- uses: actions/checkout@v4

- name: Cache poetry in ~/.local
uses: actions/cache/restore@v4
id: cache-poetry-restore
# https://github.com/astral-sh/setup-uv
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
path: ~/.local
key: "${{ runner.os }}-local-${{ env.poetry_version }}"

- name: Install poetry
if: steps.cache-poetry-restore.outputs.cache-hit != 'true'
run: pipx install poetry==${{ env.poetry_version }}
env:
PIPX_HOME: /home/runner/.local/pipx
PIPX_BIN_DIR: /home/runner/.local/bin

- name: Check poetry is installed correctly
run: poetry env info

- name: Save cache
if: steps.cache-poetry-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ~/.local
key: ${{ steps.cache-poetry-restore.outputs.cache-primary-key }}

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'poetry'
version: "latest"
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "uv.lock"
pyproject-file: "pyproject.toml"

- name: Configure poetry
run: poetry env use "${{ steps.setup-python.outputs.python-path }}"
- name: Check uv is installed correctly
run: uv version

- name: Install deps
run: poetry install --sync
run: uv sync --locked

# https://github.com/pre-commit/action
- name: Run pre-commit on all files
run: |
uv run pre-commit run --all-files

- run: poetry run pytest
- run: uv run pytest

code-static-analysis:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -125,23 +107,7 @@ jobs:
echo "Hadolint done"

# This simply checks that the manifests and respective kustomization.yaml finishes without an error.
# Version of the kustomize that operator use in runtime to apply these changes is determined by:
# https://github.com/red-hat-data-services/rhods-operator/blob/7ccc405135f99c014982d7e297b8949e970dd750/go.mod#L28-L29
# and then to match appropriate kustomize release https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.0.2
- name: Check kustomize manifest
id: kustomize-manifests
run: |
KUSTOMIZE_VERSION=5.0.2
wget "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz"
tar -xvf kustomize*

./kustomize version
echo "----------------------------------------------------------"
echo "Starting './kustomize build manifests/base'"
echo "----------------------------------------------------------"
./kustomize build manifests/base

echo "----------------------------------------------------------"
echo "Starting './kustomize build manifests/overlays/additional'"
echo "----------------------------------------------------------"
./kustomize build manifests/overlays/additional
./ci/kustomize.sh
45 changes: 9 additions & 36 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Cache poetry in ~/.local
uses: actions/cache/restore@v4
id: cache-poetry-restore
# https://github.com/astral-sh/setup-uv
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
path: ~/.local
key: "${{ runner.os }}-local-${{ env.poetry_version }}"

- name: Install poetry
if: steps.cache-poetry-restore.outputs.cache-hit != 'true'
run: pipx install poetry==${{ env.poetry_version }}
env:
PIPX_HOME: /home/runner/.local/pipx
PIPX_BIN_DIR: /home/runner/.local/bin

- name: Check poetry is installed correctly
run: poetry env info

- name: Save cache
if: steps.cache-poetry-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ~/.local
key: ${{ steps.cache-poetry-restore.outputs.cache-primary-key }}

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'poetry'

- name: Configure poetry
run: poetry env use "${{ steps.setup-python.outputs.python-path }}"

- name: Install deps
run: poetry install --sync
version: "latest"
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "uv.lock"
pyproject-file: "pyproject.toml"

- name: Run the release notes script
run: |
set -Eeuxo pipefail
poetry run ci/package_versions.py | tee ${GITHUB_STEP_SUMMARY}
uv run ci/package_versions.py | tee ${GITHUB_STEP_SUMMARY}
48 changes: 33 additions & 15 deletions .github/workflows/notebooks-digest-updater.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# The aim of this GitHub workflow is to update the params.env and commit.env files
# This GHA works for both orgs and it checks for the tags generated from the main branch.
name: Update Notebook Images and Commits With New SHAs
name: Update Notebook and Runtime Images as well as the Commits With New SHAs
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -54,42 +54,60 @@ jobs:
ref: ${{ env.TMP_BRANCH }}
fetch-depth: 0

- name: Invoke script to handle the updates
- name: Invoke ci/sha-digest-updater.sh script to handle the updates
shell: bash
run: |
bash "${GITHUB_WORKSPACE}/ci/notebooks-digest-updater.sh" "${{ env.USER_HASH }}" "${{ env.REPO_ORG }}" "${{ env.BRANCH_NAME }}" "${{ env.REPO_NAME }}"
bash "${GITHUB_WORKSPACE}/ci/sha-digest-updater.sh" "${{ env.USER_HASH }}" "${{ env.REPO_ORG }}" "${{ env.BRANCH_NAME }}" "${{ env.REPO_NAME }}"

- name: Commit Changes
run: |

if [[ $(git status --porcelain | wc -l) -gt 0 ]]; then
git fetch origin ${{ env.TMP_BRANCH }} && \
git pull origin ${{ env.TMP_BRANCH }} && \
git add "${GITHUB_WORKSPACE}/manifests/base/params.env" && \
git commit -m "Update images digest hashes via ${{ env.TMP_BRANCH }} GitHub action" && \
git add ""${GITHUB_WORKSPACE}/manifests/base/commit.env"" && \
git commit -m "Update image commits via ${{ env.TMP_BRANCH }} GitHub action" &&\
git add manifests/base/ && \
git commit -m "Update image related sha digests via notebooks-digest-updater GitHub action" && \
git push origin ${{ env.TMP_BRANCH }}
else
echo "There were no changes detected in the images for the ${{ env.BRANCH_NAME }}"
fi

- name: Capture skipped images log (if any)
id: skipped_log
run: |
if [[ -f ${GITHUB_WORKSPACE}/skipped-images.txt && -s ${GITHUB_WORKSPACE}/skipped-images.txt ]]; then
echo "Found skipped images. Preparing message."
echo 'log<<EOF' >> $GITHUB_OUTPUT
cat ${GITHUB_WORKSPACE}/skipped-images.txt >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
else
echo "log=" >> $GITHUB_OUTPUT
fi

- name: pull-request
run: |

body="${PR_BODY}"

if [[ -n "${{ steps.skipped_log.outputs.log }}" ]]; then
body+="

:warning: The following images were skipped during update, please push them manually or retriger the GitHub action:
${{ steps.skipped_log.outputs.log }}
"
fi

gh pr create --repo https://github.com/$REPO_ORG/$REPO_NAME.git \
--title "$pr_title" \
--body "$pr_body" \
--title "$PR_TITLE" \
--body "$body" \
--head $REPO_ORG:${{ env.TMP_BRANCH }} \
--base ${{ env.BRANCH_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pr_title: "[Notebooks Updater Action] Update Notebook Images and commit with new SHAs"
pr_body: |
PR_TITLE: "[Updater Action] Update Notebook and Runtime Images as well as the Commits With New SHAs"
PR_BODY: |
:rocket: This is an automated Pull Request.
Created by `/.github/workflows/notebooks-digest-updater.yaml`

This PR updates the following files:
- `manifests/base/params.env` file with the latest updated SHA digests of the notebooks.
- `manifests/base/runtime-*.yamls` file with the latest updated SHA digests of the runtimes.
- `manifests/base/commit.env` file with the latest commit.

:exclamation: **IMPORTANT NOTE**: Remember to delete the `${{ env.TMP_BRANCH }}` branch after merging the changes
1 change: 1 addition & 0 deletions .github/workflows/params-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on: # yamllint disable-line rule:truthy
- 'manifests/base/params.env'
- 'ci/check-params-env.sh'
- 'ci/check-runtime-images.sh'
- 'manifests/base/runtime-*-imagestream.yaml'
workflow_dispatch:

permissions:
Expand Down
Loading
Loading