-
Notifications
You must be signed in to change notification settings - Fork 93
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
qhub/initialize: lazy load attributes that require remote information #1509
Merged
viniciusdc
merged 8 commits into
nebari-dev:release/2022.10.1
from
FFY00:initialize-lazy-load
Oct 26, 2022
Merged
qhub/initialize: lazy load attributes that require remote information #1509
viniciusdc
merged 8 commits into
nebari-dev:release/2022.10.1
from
FFY00:initialize-lazy-load
Oct 26, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trallard
added
needs: review 👀
This PR is complete and ready for reviewing
area: user experience 👩🏻💻
area: dependencies 📦
All things dependencies
area: nebari-cli
type: bug 🐛
Something isn't working
labels
Oct 25, 2022
I will have a look, thanks @FFY00, for the contribution !!! |
viniciusdc
approved these changes
Oct 26, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iameskild
added a commit
that referenced
this pull request
Nov 2, 2022
* Switch to CalVer (#1501) * Run CI on branchs release/** * Update pyproject.toml to use calver * Update on branch * Update theme welcome messages to use Nebari (#1503) * update welcome messge * remove qhub specifics from theme * Name change QHub --> Nebari (#1508) * Name change: .github * Name change: qhub/ * Name change: tests/ * Name change: tests_deployment/ * Name change: tests_e2e/ * Name change: / * Rename folder * Rename releases * Remove qhub/ * Run pre-commit * Revert docs links * Fix infracost artifact names * Update upgrade command + test * Updates based on review * Update step output format * Fix: Update step output format * Update nebari/provider/cicd/common.py Co-authored-by: Tania Allard <[email protected]> * Update stage 08 folder names * Update nebari/schema.py Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/02-infrastructure/azure/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/02-infrastructure/do/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/02-infrastructure/gcp/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/02-infrastructure/gcp/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/03-kubernetes-initialize/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/05-kubernetes-keycloak/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/06-kubernetes-keycloak-configuration/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/06-kubernetes-keycloak-configuration/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update nebari/template/stages/07-kubernetes-services/modules/kubernetes/forwardauth/variables.tf Co-authored-by: Tania Allard <[email protected]> * Update setup.cfg Co-authored-by: Tania Allard <[email protected]> * Update scripts/aws-force-destroy.py Co-authored-by: Tania Allard <[email protected]> * Update setup.cfg Co-authored-by: Tania Allard <[email protected]> * Update setup.cfg Co-authored-by: Tania Allard <[email protected]> * Update setup.cfg Co-authored-by: Tania Allard <[email protected]> * Update setup.cfg Co-authored-by: Tania Allard <[email protected]> * Update nebari/constants.py Co-authored-by: Vinicius D. Cerutti <[email protected]> * Update setup.cfg Co-authored-by: Tania Allard <[email protected]> * fix flake8 complaint * Update ref to qhub-dask to nebari-dask * Update readme * Change to PYPI_API_TOKEN Co-authored-by: viniciusdc <[email protected]> Co-authored-by: Tania Allard <[email protected]> Co-authored-by: Vinicius D. Cerutti <[email protected]> * qhub/initialize: lazy load attributes that require remote information (#1509) * qhub/initialize: lazy load attributes that require remote information * Fix broken configuration * fix renaming * fix header text * Update nebari/initialize.py * Update nebari/initialize.py * Blackify Co-authored-by: Amit Kumar <[email protected]> Co-authored-by: Nebari-sensei <[email protected]> * Update README logo (#1514) * Add fix, enhancements and pytests for CLI (#1498) * Add fix, enhancements and pytests for CLI * No zero-padded month for CalVer release branches * Update cli test * Simplify test.yaml * Remove old CLI + cleanup (#1519) * Remove old cli * Update theme * Remove shim * display_version: True * Update `skip_remote_state_provision` default value (#1521) * Add release notes for 2022.10.1 (#1523) * Add release notes for 2022.10.1 * Wording * Update README.md with new docs links * Update README.md with new docs links Co-authored-by: Vinicius D. Cerutti <[email protected]> * Remove leading `v` for release action (#1526) * Remove leading v for release tags * Add note to release checklist * Merge release branch into main Co-authored-by: Pavithra Eswaramoorthy <[email protected]> Co-authored-by: viniciusdc <[email protected]> Co-authored-by: Tania Allard <[email protected]> Co-authored-by: Vinicius D. Cerutti <[email protected]> Co-authored-by: Filipe Laíns <[email protected]> Co-authored-by: Amit Kumar <[email protected]> Co-authored-by: Nebari-sensei <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: dependencies 📦
All things dependencies
area: nebari-cli
area: user experience 👩🏻💻
needs: review 👀
This PR is complete and ready for reviewing
type: bug 🐛
Something isn't working
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1506
Changes introduced in this PR:
This patch caches
set_docker_image_tag
andset_qhub_dask_version
, since these functions require network access, which is expensive, and makesqhub.initilize
lazy load the attributes that depend on them.Types of changes
What types of changes does your PR introduce?
Put an
x
in the boxes that applyTesting
Requires testing
In case you checked yes, did you write tests?
Documentation
Does your contribution include breaking changes or deprecations?
If so have you updated the documentation?
Further comments (optional)
The way this is implemented isn't very pretty, but I didn't want to change the code too much. As I am not familiar with this code, I don't feel comfortable enough refactoring it to better handle these cases.