Skip to content
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

[pull] main from opendatahub-io:main #452

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b3d8af0
RHOAIENG-16076: tests(gha): run Makefile tests on opendatahub-io/not…
jiridanek Nov 28, 2024
73ff3b2
Update images for release N via digest-updater-12081993672 GitHub action
github-actions[bot] Nov 29, 2024
7b4a199
Update image commits for release N via digest-updater-12081993672 Git…
github-actions[bot] Nov 29, 2024
d4f2461
Update images for release N-1 via digest-updater-12081993672 GitHub a…
github-actions[bot] Nov 29, 2024
e761988
Update image commits for release N-1 via digest-updater-12081993672 G…
github-actions[bot] Nov 29, 2024
f0064d5
Merge pull request #789 from opendatahub-io/digest-updater-12081993672
ide-developer Nov 29, 2024
8bd4c31
Update file via digest-updater-12083776232 GitHub action
github-actions[bot] Nov 29, 2024
e1bf3cf
Merge pull request #790 from opendatahub-io/digest-updater-12083776232
ide-developer Nov 29, 2024
3f95611
Update the pipfile.lock via the weekly workflow action
github-actions[bot] Dec 2, 2024
95f3a83
Remove Habana referencies from upstream docs
atheo89 Dec 4, 2024
ecd9e76
Merge pull request #793 from atheo89/RHOAIENG-15000-clean-docs
openshift-merge-bot[bot] Dec 5, 2024
03c3b6f
RHOAIENG-11274: chore(Makefile): widen the container build context to…
jiridanek Dec 9, 2024
01e0e12
NO-JIRA: fix selftest, need to use gmake on macOS (#799)
jiridanek Dec 9, 2024
227bfb7
Update the pipfile.lock via the weekly workflow action
github-actions[bot] Dec 9, 2024
7419685
RHOAIENG-16518: ref(jupyter): deduplicate the Jupyterlab loading spin…
jiridanek Dec 11, 2024
059a835
RHOAIENG-16517: chore(tests): add new changed files rebuild helper fo…
jiridanek Dec 11, 2024
33f95dd
RHOAIENG-16517: chore(tests): add sandboxing so that Dockerfile build…
jiridanek Dec 11, 2024
ca80fee
Update piplock renewal gh action
atheo89 Dec 11, 2024
fe57aac
Merge pull request #805 from atheo89/RHOAIENG-15393
openshift-merge-bot[bot] Dec 13, 2024
fe3641a
RHOAIENG-16403: chore(Makefile): implement `.ONESHELL:` and `.SHELLFL…
jiridanek Dec 13, 2024
0407ac7
Pin jupyterlab package to version 4.2.6
caponetto Dec 16, 2024
093eb79
RHOAIENG-16403: chore(Makefile): remove the now-unnecessary trailing …
jiridanek Dec 16, 2024
4332bc2
NO-JIRA: chore(.editorconfig): introduce `.editorconfig` file for the…
jiridanek Dec 16, 2024
5e9802c
Make the pipfile renewal to work when in cron firing
atheo89 Dec 17, 2024
a0e4503
Merge pull request #811 from atheo89/followup-on-renewal
openshift-merge-bot[bot] Dec 17, 2024
a33d66a
RHOAIENG-16520, RHOAIENG-11807, RHOAIENG-16955: update setuptools to …
dibryant Dec 18, 2024
567c2ca
NO-JIRA: chore(gha): run code-server playwright tests for pushes (and…
jiridanek Dec 18, 2024
6db9c36
NO-ISSUE: chore(owners): add myself as reviewer/approver
andyatmiami Dec 18, 2024
990807f
Merge pull request #816 from jiridanek/jd_always_vscode
openshift-merge-bot[bot] Dec 19, 2024
d57ab12
Merge pull request #818 from andyatmiami/me-to-owners
openshift-merge-bot[bot] Dec 19, 2024
dfb516c
NO-JIRA: chore(tests): use gmake on macOS
jiridanek Dec 19, 2024
cc4098a
Merge pull request #819 from jiridanek/jd_gmake
openshift-merge-bot[bot] Dec 19, 2024
b7cf0ba
RHOAIENG-16415: chore(notebooks): remove unreferenced 3.9 images (#817)
jiridanek Dec 20, 2024
5439de0
install necessary base base OS package to make Knit rendering of R ma…
shalberd Dec 5, 2024
5721e3e
RStudio: added grabbing proxy-related env vars from container context…
shalberd Dec 5, 2024
532f554
Merge pull request #810 from caponetto/pin-jl-version
openshift-merge-bot[bot] Dec 21, 2024
dfc40fe
Merge pull request #797 from shalberd/RStudio_make_workbench_containe…
openshift-merge-bot[bot] Dec 22, 2024
ffc8809
Merge pull request #798 from shalberd/RStudio_make_R_markup_to_PDF_re…
openshift-merge-bot[bot] Dec 23, 2024
2bd35f7
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Dec 25, 2024
8487113
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jan 1, 2025
01bf3b5
fix(build): use yq to modify kustomization.yaml
andyatmiami Dec 29, 2024
1a2669c
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jan 8, 2025
b84b6b5
feat(deps): add kubeflow-training to workbench images
andyatmiami Dec 20, 2024
d8917bf
Merge pull request #826 from andyatmiami/chore/add-kfto-python-sdk
openshift-merge-bot[bot] Jan 9, 2025
8a24d01
Merge pull request #828 from andyatmiami/fix/yq-not-sed-in-deploy-target
openshift-merge-bot[bot] Jan 9, 2025
a10b809
Update Pipfile.lock files by piplock-renewal.yaml action
github-actions[bot] Jan 15, 2025
5fe1aa8
Updated notebooks via odh-sync-updater-12711100946 GitHub action
codeflare-machine-account Jan 10, 2025
8ab739e
Merge pull request #836 from Bobbins228/odh-sync-codeflare
atheo89 Jan 15, 2025
f213a59
Update Imagestream files with new package versions (#841)
atheo89 Jan 16, 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
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.git/
.idea/
.venv/
bin/
ci/
tests/

**/.mypy_cache/
**/.pytest_cache/
**/__pycache__/
**/*.pyc

**/Dockerfile
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://editorconfig.org/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab
69 changes: 66 additions & 3 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,22 @@ jobs:

- uses: actions/checkout@v4

- run: mkdir -p $TMPDIR

# for bin/buildinputs in scripts/sandbox.py
- uses: actions/setup-go@v5
with:
cache-dependency-path: "**/*.sum"

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# region Free up disk space

- name: Free up additional disk space
# https://docs.github.com/en/actions/learn-github-actions/expressions
if: "${{ contains(inputs.target, 'rocm') || contains(inputs.target, 'cuda') || contains(inputs.target, 'intel') ||
Expand Down Expand Up @@ -86,6 +95,10 @@ jobs:
df -h
free -h

# endregion

# region Podman setup

# https://github.com/containers/buildah/issues/2521#issuecomment-884779112
- name: Workaround https://github.com/containers/podman/issues/22152#issuecomment-2027705598
run: sudo apt-get -qq remove podman crun
Expand Down Expand Up @@ -156,6 +169,10 @@ jobs:
echo "IMAGE_TAG=${IMAGE_TAG}" >> "$GITHUB_OUTPUT"
echo "OUTPUT_IMAGE=${{ env.IMAGE_REGISTRY}}:${{ inputs.target }}-${IMAGE_TAG}" >> "$GITHUB_OUTPUT"

# endregion

# region Trivy init & DB pre-pull

- 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' }}
Expand Down Expand Up @@ -210,6 +227,10 @@ jobs:
image \
--download-java-db-only

# endregion

# region Image build

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
- name: "push|schedule: make ${{ inputs.target }}"
run: |
Expand All @@ -235,10 +256,34 @@ jobs:
- name: "Show podman images information"
run: podman images --digests

# endregion

# region Makefile image tests

- name: "Check if we have tests or not"
id: have-tests
run: "ci/cached-builds/has_tests.py --target ${{ inputs.target }}"

- name: "Change pull policy to IfNotPresent"
run: |
set -Eeuxo pipefail

find . \( -name "statefulset.yaml" -o -name "pod.yaml" \) -type f -exec \
sed -i'' 's/imagePullPolicy: Always/imagePullPolicy: IfNotPresent/g' {} \;
git diff

# [INFO] Running command (('make deploy9-runtimes-rocm-tensorflow-ubi9-python-3.11',), {'shell': True})
# Deploying notebook from runtimes/rocm/tensorflow/ubi9-python-3.11/kustomize/base directory...
# sed: can't read runtimes/rocm/tensorflow/ubi9-python-3.11/kustomize/base/kustomization.yaml: No such file or directory
- name: "Fixup paths that prevent us from running rocm tests"
if: ${{ steps.have-tests.outputs.tests == 'true' }}
run: |
set -Eeuxo pipefail

mkdir -p runtimes/rocm
ln -s ../rocm-tensorflow runtimes/rocm/tensorflow
ln -s ../rocm-pytorch runtimes/rocm/pytorch

# https://cri-o.io/
- name: Install cri-o
if: ${{ steps.have-tests.outputs.tests == 'true' }}
Expand Down Expand Up @@ -288,11 +333,11 @@ jobs:

# do this early, it's a good check that cri-o is not completely broken
- name: "Show crio images information"
if: ${{ steps.have-tests.outputs.tests == 'true' }}
if: ${{ steps.have-tests.outputs.tests == 'true' }}
run: sudo crictl images

- name: Install Kubernetes cluster
if: ${{ steps.have-tests.outputs.tests == 'true' }}
if: ${{ steps.have-tests.outputs.tests == 'true' }}
run: |
set -Eeuxo pipefail

Expand Down Expand Up @@ -350,6 +395,18 @@ jobs:
kubectl wait deployments --all --all-namespaces --for=condition=Available --timeout=100s
kubectl wait pods --all --all-namespaces --for=condition=Ready --timeout=100s

- name: "Run image tests"
if: ${{ steps.have-tests.outputs.tests == 'true' }}
run: python3 ci/cached-builds/make_test.py --target ${{ inputs.target }}
env:
IMAGE_TAG: "${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
# for make deploy, mandatory to specify for the more exotic cases
NOTEBOOK_TAG: "${{ inputs.target }}-${{ steps.calculated_vars.outputs.IMAGE_TAG }}"

# endregion

# region Trivy vulnerability scan

- name: Run Trivy vulnerability scanner
if: ${{ steps.resolve-target.outputs.target }}
run: |
Expand Down Expand Up @@ -391,12 +448,16 @@ jobs:

cat $REPORT_FOLDER/$REPORT_FILE >> $GITHUB_STEP_SUMMARY

# endregion

# region Typescript (browser) image tests

# https://playwright.dev/docs/ci
# https://playwright.dev/docs/docker
# we leave little free disk space after we mount LVM for podman storage
# not enough to install playwright; running playwright in podman uses the space we have
- name: Run Playwright tests
if: ${{ fromJson(inputs.github).event_name == 'pull_request' && contains(inputs.target, 'codeserver') }}
if: ${{ contains(inputs.target, 'codeserver') }}
# --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
Expand Down Expand Up @@ -436,5 +497,7 @@ jobs:
path: tests/browser/playwright-report/
retention-days: 30

# endregion

- run: df -h
if: "${{ !cancelled() }}"
4 changes: 4 additions & 0 deletions .github/workflows/build-notebooks-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
cache-dependency-path: "**/*.sum"

- name: Determine targets to build based on changed files
run: |
set -x
Expand Down
Loading