Skip to content

Conversation

@gabrielgeorgiev1
Copy link
Contributor

This PR modifies the CICD of vdk-jupyter to run the integration
tests.

Signed-off-by: Gabriel Georgiev gageorgiev@vmware.com

Currently, logs made inside jobs using print statements are not
positioned correctly within the vdk_logs file, but rather print
logs are appended at the end of the file.

This change fixes this by enabling the PYTHONUNBUFFERED env
variable to ensure that print statements are not buffered
and are written to the file immediately.

Testing done: local test

Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
This PR modifies the CICD of vdk-jupyter to run the integration
tests.

Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
…on/gageorgiev/jupyter-it

Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
s
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>

integration-tests-vdk-jupyterlab-extension:
extends: .common-setup-vdk-jupyterlab-extension
stage: pre_release_test
Copy link
Contributor

Choose a reason for hiding this comment

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

You know that you can change the image wiht image: tag, right?

The default image use is python:3.8-alpine I can see from teh logs.

But the warning in the logs says that it isn't supported.
So you can change it to normal Ubuntu image or something else that is supported by playwright

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apparently the 'not supported' warning isn't a massive issue according to what I read

a
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Copy link
Contributor

@yonitoo yonitoo left a comment

Choose a reason for hiding this comment

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

Can you add Testing Done section in the description or attach a successful run if/whenever there is such?
Left some comments, otherwise looks good.

Comment on lines +67 to +68
- export TZ=Europe/Minsk
- ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to set the timezone to ours? AFAIK, we don't do that in other CI files. I think it might potentially cause some unwanted time discrepancies in the future.

Comment on lines 76 to 78
- pip install -U pip setuptools pre-commit
- apt install nodejs rustc cargo libffi-dev -y
- pip install jupyter
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we rely on the common setup instead of kinda duplicating the work there?

gabrielgeorgiev1 and others added 10 commits October 16, 2023 14:26
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
…atile-data-kit into person/gageorgiev/jupyter-it
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
Signed-off-by: Gabriel Georgiev <gageorgiev@vmware.com>
@duyguHsnHsn
Copy link
Contributor

duyguHsnHsn commented Oct 25, 2023

Idk, whether this will be useful but u can check https://github.com/jupyterlab/jupyterlab-git/actions/runs/5753409851/workflow

@gabrielgeorgiev1
Copy link
Contributor Author

closing in favor of #2868

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.

6 participants