Skip to content

chore: Rename path variables for clarity#1163

Open
sambuc wants to merge 1 commit into
feat/secrets-and-dc-in-hpc-sessionsfrom
sambuc/chore/rename-path-variables-for-clarity
Open

chore: Rename path variables for clarity#1163
sambuc wants to merge 1 commit into
feat/secrets-and-dc-in-hpc-sessionsfrom
sambuc/chore/rename-path-variables-for-clarity

Conversation

@sambuc

@sambuc sambuc commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@sambuc sambuc force-pushed the sambuc/chore/refactor-tunnelsecret-handling branch from e3bf1c6 to 0e8900d Compare July 8, 2026 11:49
@sambuc sambuc force-pushed the sambuc/chore/rename-path-variables-for-clarity branch from 7803404 to a3a98a1 Compare July 8, 2026 12:05
@sambuc sambuc force-pushed the sambuc/chore/refactor-tunnelsecret-handling branch from 0e8900d to 01c37dd Compare July 8, 2026 12:15
@sambuc sambuc force-pushed the sambuc/chore/rename-path-variables-for-clarity branch from a3a98a1 to d8878c9 Compare July 8, 2026 12:16
@sambuc sambuc marked this pull request as ready for review July 8, 2026 12:35
@sambuc sambuc requested review from a team and olevski as code owners July 8, 2026 12:35

@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.

Not sure I understand which type of clarity I gain by having srun prefixed everywhere.

@sambuc

sambuc commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

I spend quite some time before realising this code was managing 3 sets of paths:

  1. The paths in the proxy container
  2. The paths on the node as seen by the srun command.
  3. The paths within the (final) user container

And figuring out which was which and when it was used.

Maybe I should have prefixed with something else but it was necessary for me to be a bit more explicit about what the variables were holding.

@sambuc sambuc force-pushed the sambuc/chore/refactor-tunnelsecret-handling branch from 57c2053 to 5dc9fc0 Compare July 10, 2026 12:43
Base automatically changed from sambuc/chore/refactor-tunnelsecret-handling to feat/secrets-and-dc-in-hpc-sessions July 10, 2026 13:03
@sambuc sambuc force-pushed the sambuc/chore/rename-path-variables-for-clarity branch from d8878c9 to 72438d0 Compare July 10, 2026 13:09
@leafty

leafty commented Jul 10, 2026

Copy link
Copy Markdown
Member

I spend quite some time before realising this code was managing 3 sets of paths:

  1. The paths in the proxy container
  2. The paths on the node as seen by the srun command.
  3. The paths within the (final) user container

And figuring out which was which and when it was used.

Maybe I should have prefixed with something else but it was necessary for me to be a bit more explicit about what the variables were holding.

How about:

  • localX local file path, can be read from os.Read()
  • remoteX, remote file path, created by calling Firecrest
  • containerX, path inside the session container

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.

2 participants