Skip to content

chore: Reorganise session folder for hpc sessions#1151

Merged
sambuc merged 7 commits into
feat/secrets-and-dc-in-hpc-sessionsfrom
sambuc/chore/reorganise-session-folder-for-hpc-sessions
Jun 24, 2026
Merged

chore: Reorganise session folder for hpc sessions#1151
sambuc merged 7 commits into
feat/secrets-and-dc-in-hpc-sessionsfrom
sambuc/chore/reorganise-session-folder-for-hpc-sessions

Conversation

@sambuc

@sambuc sambuc commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

: ${SESSION_DIR:="${PWD}"}
: ${SESSION_WORK_DIR:="${SESSION_DIR}/work"}
: ${SECRETS_DIR:="${SESSION_DIR}/secrets"}
: ${SECRETS_SLOTS_DIR:="${SECRETS_DIR}/slots/"}

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.

Let's call them "user secrets":

Suggested change
: ${SECRETS_SLOTS_DIR:="${SECRETS_DIR}/slots/"}
: ${SECRETS_SLOTS_DIR:="${SECRETS_DIR}/user/"}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok, applied

: ${SESSION_WORK_DIR:="${SESSION_DIR}/work"}
: ${SECRETS_DIR:="${SESSION_DIR}/secrets"}
: ${SECRETS_SLOTS_DIR:="${SECRETS_DIR}/slots/"}
: ${SECRETS_DCS_DIR:="${SECRETS_DIR}/dcs"}

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.

Explicit naming:

Suggested change
: ${SECRETS_DCS_DIR:="${SECRETS_DIR}/dcs"}
: ${SECRETS_DATA_CONNECTORS_DIR:="${SECRETS_DIR}/data_connectors"}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Applied as well

Base automatically changed from sambuc/chore/regroup-session-environment-definition to feat/secrets-and-dc-in-hpc-sessions June 22, 2026 11:30
Comment on lines +134 to +137
for d in \
SESSION_DIR \
SESSION_WORK_DIR \
LOGS_DIR

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.

I think you need to have:

  • SESSION_WORK_DIR (with -p means we can skip SESSION_DIR)
  • SECRETS_USER_DIR
  • SECRETS_DATA_CONNECTORS_DIR
  • LOGS_DIR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the review, I have added the missing folder variables.

I am explicitly listing all the folder variables in the loop to avoid assumptions about their relationships.

Calling mkdir on a folder which already exists is a no-op, so this should not cause any problems.

@sambuc sambuc merged commit 92d0bb2 into feat/secrets-and-dc-in-hpc-sessions Jun 24, 2026
6 of 7 checks passed
@sambuc sambuc deleted the sambuc/chore/reorganise-session-folder-for-hpc-sessions branch June 24, 2026 11:43
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.

3 participants