Skip to content

feat!: create a session image from a code repository - #3878

Merged
leafty merged 50 commits into
release-0.66.0from
build/session-env-builders
Mar 11, 2025
Merged

leafty merged 50 commits into
release-0.66.0from
build/session-env-builders

Conversation

@leafty

@leafty leafty commented Jan 27, 2025 •

Copy link
Copy Markdown
Member

Closes #3877.

This feature adds a new option when creating a session launcher: users can now choose to build a session image from one of their code repositories.

Deployment: https://ci-renku-3878.dev.renku.ch/.

/deploy extra-values=dataService.imageBuilders.enabled=true,dataService.imageBuilders.pushSecretName=flora-docker-secret,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/flora-dev/

@leafty
leafty requested a review from a team as a code owner January 27, 2025 14:22
@leafty
leafty requested a review from a team as a code owner January 27, 2025 14:30
@leafty
leafty marked this pull request as draft January 27, 2025 14:38
@Panaetius
Panaetius force-pushed the release-0.65.0 branch 2 times, most recently from b20d7fc to 62c67b3 Compare February 7, 2025 05:14
RenkuBot and others added 6 commits February 7, 2025 15:21
…3888)

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…3840)

Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Lorenzo Cavazzi <[email protected]>
This commit continues on the topic of making the definition
of the secrets in the values files optional, to simplify CI
deployments.

As previous similar commits this change supports:

- Existing deployments where the secret is defined will
keep working as usual

- New deployments where the secret is defined will keep
working as they did before this change

- New deployments where the secret is NOT defined will
get 2 random passwords which will be persisted across
upgrades/redeployments

The three scenarios have been manually tested.
These are the last two secrets that were needed to be generated
out-of-bands before deploying Renkulab.

Thus the `generate-values` script is not really necessary anymore
and in its place there is a `minimal-deployment` values file that
in a future commit will also be used as a base for CI deployments.

The documentation has been updated to reflect the removal of the
script.

Further cleanup and simplification of the Helm chart will result
in a smaller and simpler minimum-deployment file, with the ultimate
goal of being able to issue `helm install renku/renku` resulting
in a functioning development deployment.
Add support caching buildruns and taskruns.

---------

Co-authored-by: Ralf Grubenmann <[email protected]>
@rokroskar

Copy link
Copy Markdown
Member

@SwissDataScienceCenter/yat we should make a proper robot account + repository in harbor and update the values for dev and dev-ci deployments so that the extra values aren't needed here.

@aledegano

Copy link
Copy Markdown
Contributor

@SwissDataScienceCenter/yat we should make a proper robot account + repository in harbor and update the values for dev and dev-ci deployments so that the extra values aren't needed here.

yes, as soon as I am done with #3937, which will make changing these values so much easier.

@rokroskar

Copy link
Copy Markdown
Member

I believe the change that is needed will be the same. As in, these are non-standard values that need to be specified anyway.

@leafty
leafty temporarily deployed to ci-renku-3878 March 7, 2025 15:25 — with GitHub Actions Inactive
@leafty

leafty commented Mar 7, 2025

Copy link
Copy Markdown
Member Author

I believe the change that is needed will be the same. As in, these are non-standard values that need to be specified anyway.

The defaults can work on dev, provided the buildstrategy and the secret are correct.

@leafty
leafty temporarily deployed to ci-renku-3878 March 7, 2025 15:31 — with GitHub Actions Inactive
@rokroskar

Copy link
Copy Markdown
Member

I believe the change that is needed will be the same. As in, these are non-standard values that need to be specified anyway.

The defaults can work on dev, provided the buildstrategy and the secret are correct.

By default the feature is disabled so you have to add at least that to the values. But yes, if we just use the default secret and build strategy names that's the only thing that should be required.

Comment on lines +1519 to +1527
## The node selector for BuildRuns
nodeSelector:
renku.io/node-purpose: image-build
## The tolerations for BuildRuns
tolerations:
- effect: NoSchedule
key: renku.io/dedicated
operator: Equal
value: image-build

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should this be commented out to keep the value functional in simple deployments?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This follows the current efforts from @aledegano to reduce the amount of custom values for CI/CD deployments. If you want to switch enabled: true, then having to adjust the values here is expected for now.

Comment thread helm-chart/values.yaml.changelog.md Resolved
@leafty
leafty temporarily deployed to ci-renku-3878 March 10, 2025 12:15 — with GitHub Actions Inactive
@leafty
leafty requested a review from rokroskar March 10, 2025 12:24
@leafty
leafty temporarily deployed to ci-renku-3878 March 10, 2025 16:04 — with GitHub Actions Inactive
Comment thread CHANGELOG.rst Resolved
Co-authored-by: Ralf Grubenmann <[email protected]>
@leafty
leafty merged commit aa75407 into release-0.66.0 Mar 11, 2025
@leafty
leafty deleted the build/session-env-builders branch March 11, 2025 08:03
olevski pushed a commit that referenced this pull request Mar 11, 2025
This feature adds a new option when creating a session launcher: users can now choose to build a session image from one of their code repositories.

---------

Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>
olevski pushed a commit that referenced this pull request Mar 11, 2025
This feature adds a new option when creating a session launcher: users can now choose to build a session image from one of their code repositories.

---------

Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>
Panaetius added a commit that referenced this pull request Mar 17, 2025
This feature adds a new option when creating a session launcher: users can now choose to build a session image from one of their code repositories.

---------

Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>
Panaetius added a commit that referenced this pull request Mar 18, 2025
* chore: create release 0.66.0

* feat!: create a session image from a code repository (#3878)

This feature adds a new option when creating a session launcher: users can now choose to build a session image from one of their code repositories.

---------

Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>

* feat: turn off notebook service (#3861)

* update gateway to 1.4.0

* update notebooks to 1.30.0

* update notebooks to 1.30.1

* update data service to 0.35.1

* scale down notebooks to zero replicas

---------

Co-authored-by: Ralf Grubenmann <[email protected]>
ci: make legacy acceptance tests optional (#3948)

* bump renku-action and run legacy tests only on requests
* run legacy tests on release branches
* update renku actions to v1.14.2

* chore(docs): rewrite readme to reflect 2.0 development (#3944)

* chore: bump amalthea to 0.17.0 (#3953)

* feat: update data services 0.35.2, ui to 3.50.0 (#3952)

* fix: update data services to 0.35.2

* feat: update renku-ui to 3.50.0

* fix: acceptance tests HTML selector tags

* feat: add project migration from Renku V1 to Renku 2.0 (#3954)

---------

Co-authored-by: Flora Thiebaut <[email protected]>
Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>
Co-authored-by: Tasko Olevski <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Andrea Cordoba <[email protected]>
olevski added a commit that referenced this pull request May 13, 2025
* chore: create release 0.66.0

* feat!: create a session image from a code repository (#3878)

This feature adds a new option when creating a session launcher: users can now choose to build a session image from one of their code repositories.

---------

Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>

* feat: turn off notebook service (#3861)

* update gateway to 1.4.0

* update notebooks to 1.30.0

* update notebooks to 1.30.1

* update data service to 0.35.1

* scale down notebooks to zero replicas

---------

Co-authored-by: Ralf Grubenmann <[email protected]>
ci: make legacy acceptance tests optional (#3948)

* bump renku-action and run legacy tests only on requests
* run legacy tests on release branches
* update renku actions to v1.14.2

* chore(docs): rewrite readme to reflect 2.0 development (#3944)

* chore: bump amalthea to 0.17.0 (#3953)

* feat: update data services 0.35.2, ui to 3.50.0 (#3952)

* fix: update data services to 0.35.2

* feat: update renku-ui to 3.50.0

* fix: acceptance tests HTML selector tags

* feat: add project migration from Renku V1 to Renku 2.0 (#3954)

---------

Co-authored-by: Flora Thiebaut <[email protected]>
Co-authored-by: Alessandro Degano <[email protected]>
Co-authored-by: Ralf Grubenmann <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Mohammad Alisafaee <[email protected]>
Co-authored-by: Salim Kayal <[email protected]>
Co-authored-by: Samuel Gaist <[email protected]>
Co-authored-by: Tasko Olevski <[email protected]>
Co-authored-by: Rok Roškar <[email protected]>
Co-authored-by: Andrea Cordoba <[email protected]>

This branch was successfully deployed

1 active deployment
ci-renku-3878 — 9a40cd54 Deployed Mar 10, 2025 by leafty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants