Skip to content

Add frontend variant as session label - #1455

Merged
olevski merged 8 commits into
salimkayal/feat/ssh-keysfrom
eikek/feat/session-frontend-label
Oct 1, 2026
Merged

olevski merged 8 commits into
salimkayal/feat/ssh-keysfrom
eikek/feat/session-frontend-label

Conversation

@eikek

@eikek eikek commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Add the frontend variant to the session details. It will be also added as a label to the session k8s resource. This is later used to decide whether ssh specific configuration is added to the resource.


PR Stack


/deploy #notest extra-values=sshProxy.targetUser=renku,sshProxy.targetPort=2222,dataService.imageBuilders.enabled=true,dataService.imageBuilders.strategyName=renku-buildpacks-v3,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/renku-build/,dataService.imageBuilders.nodeSelector.renku.io/node-purpose=user,dataService.imageBuilders.tolerations[0].effect=NoSchedule,dataService.imageBuilders.tolerations[0].key=renku.io/dedicated,dataService.imageBuilders.tolerations[0].operator=Equal,dataService.imageBuilders.tolerations[0].value=user amalthea-sessions=salimkayal/feat/2222-service-in-ssh-sessions renku-ui=lorenzo/ssh-keys-required renku=eikek/ssh-buildpack-update

@coveralls

coveralls commented Sep 22, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 36882444583

Warning

No base build found for commit 60fa4a8 on salimkayal/feat/ssh-keys.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 85.29%

Details

  • Patch coverage: 1 uncovered change across 1 file (56 of 57 lines covered, 98.25%).

Uncovered Changes

File Changed Covered %
components/renku_data_services/notebooks/core_sessions.py 6 5 83.33%
Total (4 files) 57 56 98.25%

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 34739
Covered Lines: 29629
Line Coverage: 85.29%
Coverage Strength: 1.48 hits per line

💛 - Coveralls

@RenkuBot

Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ds-1455.dev.renku.ch

@eikek
eikek force-pushed the eikek/feat/session-frontend-label branch from 2e3882f to 5b0fefa Compare September 24, 2026 07:42
@eikek
eikek marked this pull request as ready for review September 24, 2026 07:56
@eikek
eikek requested review from a team, SalimKayal and sgaist as code owners September 24, 2026 07:56
sgaist
sgaist previously approved these changes Sep 24, 2026
leafty
leafty previously requested changes Sep 25, 2026

@leafty leafty left a comment

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.

See: SwissDataScienceCenter/amalthea#1230 (comment)

This is bad design: it is non-extensible and non-flexible. Add SSH into the amalthea spec.

@leafty

leafty commented Sep 25, 2026

Copy link
Copy Markdown
Member

See: SwissDataScienceCenter/amalthea#1230 (comment)

This is bad design: it is non-extensible and non-flexible. Add SSH into the amalthea spec.

Also, to be clear: the issue is not adding a new label, it is that the AmaltheaSession behavior should be dictated by the spec and not labels/annotations.

Comment thread components/renku_data_services/notebooks/api.spec.yaml
@SalimKayal
SalimKayal force-pushed the salimkayal/feat/ssh-proxy-session-mounts branch from 83a697e to 0826723 Compare September 29, 2026 13:20
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-frontend-label branch from ca14d5b to 81472fc Compare September 29, 2026 13:20
@SalimKayal
SalimKayal removed this pull request from stack #1445 September 29, 2026 14:59
@SalimKayal
SalimKayal added this pull request to stack #1465 September 29, 2026 15:05
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-frontend-label branch 2 times, most recently from b7fe810 to 5f7d4f8 Compare September 29, 2026 17:46
@SalimKayal
SalimKayal force-pushed the salimkayal/feat/ssh-proxy-session-mounts branch from 6293222 to 3c23bec Compare September 29, 2026 17:46
@eikek

eikek commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

See: SwissDataScienceCenter/amalthea#1230 (comment)
This is bad design: it is non-extensible and non-flexible. Add SSH into the amalthea spec.

Also, to be clear: the issue is not adding a new label, it is that the AmaltheaSession behavior should be dictated by the spec and not labels/annotations.

We now don't use the label in amalthea. We return a ssh url in the session responso to transport the details for how to connect. #1467

@olevski
olevski marked this pull request as draft September 30, 2026 13:47
@olevski
olevski removed this pull request from stack #1465 September 30, 2026 13:50
@olevski
olevski force-pushed the salimkayal/feat/ssh-proxy-session-mounts branch from 3c23bec to 4f6be2a Compare October 1, 2026 13:05
@SalimKayal
SalimKayal force-pushed the eikek/feat/session-frontend-label branch from 5f7d4f8 to 038bada Compare October 1, 2026 14:43
Base automatically changed from salimkayal/feat/ssh-proxy-session-mounts to salimkayal/feat/ssh-keys October 1, 2026 15:01
@olevski
olevski requested a review from leafty October 1, 2026 15:18
@olevski
olevski marked this pull request as ready for review October 1, 2026 15:20
@olevski
olevski dismissed leafty’s stale review October 1, 2026 15:22

The labels do not drive the behaviour of amalthea anymore. They are there for information purposes only. Subsequent PRs will provide information on how to connect to the SSH server. So all the comments have been addressed.

@olevski
olevski merged commit 44a7b01 into salimkayal/feat/ssh-keys Oct 1, 2026
19 of 23 checks passed
@olevski
olevski deleted the eikek/feat/session-frontend-label branch October 1, 2026 15:50
@RenkuBot

RenkuBot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Tearing down the temporary RenkuLab deployment for this PR.

olevski pushed a commit that referenced this pull request Oct 2, 2026
* Add frontend variant as session label

* Don't comment on the pr due to token issue

* Return frontend_variant with session details

* reactivate pr comment

* Add ssh to the frontend options

* Extend builder-frontend combination

* Add test for ssh build

* Change frontend_variant label on patch
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.

6 participants