Skip to content

chore(default pypi repo): change to pypi from pypi-remote #49

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

Merged
merged 2 commits into from
May 15, 2025

Conversation

Jose-Matsuda
Copy link
Contributor

@Jose-Matsuda Jose-Matsuda commented Apr 23, 2025

Description

For https://jirab.statcan.ca/browse/BTIS-947 and https://jirab.statcan.ca/browse/BTIS-971
Defaults to use the pypi virtual repo over pypi-remote. Tested and works

Tests / Quality Checks

Are there breaking changes?

Ask yourself the next question;

  • Do we want to maintain the previous image from which we had to do breaking changes from?

If no, then carry on. If yes, there is a breaking change and we want to maintain the previous image do the following

  • Create a new branch for the current version (ex v1) based off the current master/main branch
  • Increment the tag in the CI for pushes to master/main (v1 to v2)
  • Change the CI that on pushes to the newly created "v1" branch (the name of the newly created branch we want to maintain is) it will push to the ACR.

Automated Testing/build and deployment

  • Does the image pass CI successfully (build, pass vulnerability scan, and pass automated test suite)?
  • If new features are added (new image, new binary, etc), have new automated tests been added to cover these?
  • If new features are added that require in-cluster testing (e.g. a new feature that needs to interact with kubernetes), have you added the auto-deploy tag to the PR before pushing in order to build and push the image to ACR so you can test it in cluster as a custom image?

JupyterLab extensions

  • Are all extensions "enabled" (jupyter labextension list from inside the notebook)?

VS Code tests

  • Does VS Code open?
  • Can you install extensions?

Code review

  • Have you added the auto-deploy tag to your PR before your most recent push to this repo? This causes CI to build the image and push to our ACR, letting reviewers access the built image without having to create it themselves
  • Have you chosen a reviewer, attached them as a reviewer to this PR, and messaged them with the SHA-pinned image name for the final image to test on the dev cluster (e.g. k8scc01covidacrdev.azurecr.io/jupyterlab-cpu:746d058e2f37e004da5ca483d121bfb9e0545f2b)?

@Jose-Matsuda Jose-Matsuda added the auto-deploy Trigger manual CI steps for this PR label Apr 23, 2025
@Souheil-Yazji
Copy link
Contributor

@Jose-Matsuda
Copy link
Contributor Author

Was able to resolve successfully the following on a custom notebook using the image generated by this pr;

(base) jovyan@pypi-0:~$ pip install pandas
Looking in indexes: https://svc-das:****@artifactory.cloud.statcan.ca/artifactory/api/pypi/pypi/simple

Was also able to pip install touts
image

as was wanted by this issue here

@Jose-Matsuda Jose-Matsuda merged commit b165fbf into master May 15, 2025
27 checks passed
@Jose-Matsuda Jose-Matsuda deleted the update-pypi branch May 15, 2025 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-deploy Trigger manual CI steps for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants