Remove stray quote in submit.yml.erb that breaks session submission on the vector partition - #79
Open
eastagiletracker wants to merge 1 commit into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR proposes removing a stray double quote in five apps'
submit.yml.erbthat stops any session from being submitted when a user selects thevectorpartition. We include this PR work along with a full history of your repo at https://eastagiletracker.com/projects/345. You can sign in with your GitHub ID to claim ownership of the project.What is wrong today
brc_desktop,brc_jupyter-compute,brc_matlab,brc_rstudio-computeandbrc_vscodeserver-computeeach carry this line insubmit.yml.erb, with a trailing"after the closing ERB tag:Since the tag closes with
%>rather than-%>, that quote is literal template output, and it sits inside thevectorbranch. So wheneverslurm_partitionisvector, the rendered submission file gets a bare"line immediately beforeqos: "vector_batch"and stops being valid YAML — the session never gets submitted. The four apps that do not carry the stray quote (brc_jupyter-interactive,brc_rstudio-interactive,brc_vscodeserver-interactive,brc_ray_cluster) render fine, which is what made the difference easy to isolate.vectoris a partition these forms deliberately support: every one of the affected apps lists it innon_account_partitioninform.jsand hides the account and QoS fields when it is chosen.Reproduced on
mainat 5032734 by rendering each template the way the Dashboard does — ERB withtrim_mode: "-", then a YAML parse:Output on the current tree:
The change
One character per file, in the five affected apps: the line becomes
<%- if slurm_partition == "vector" %>. Nothing else is touched.How it was verified
The same command on this branch prints
OKfor all nine apps, and thevectorbranch now parses to theqos: vector_batchsetting it was always meant to produce. I ran that render-and-parse check across all nine apps against three partitions —vector,savio3andsavio2_gpu— before and after the change: five failures before (all of them onvector), zero after, and nothing that parsed before regressed.To confirm nothing changes for everyone else, I also dumped the fully rendered template text for all nine apps across the non-
vectorpartitions, before and after, and diffed it: byte for byte identical. That follows from where the stray quote sits — it only ever reached the output on thevectorbranch — so this cannot affect asavio*submission.The one thing I cannot check from outside your cluster is a real job submission, so the remaining verification on your side is a single Desktop or Jupyter session on
vector, which should now submit instead of erroring out.How this was managed
This work was tracked on a board imported from this repository's own issues and pull requests (77 stories and 6 labels): the fix is this story, and the full board is at https://eastagiletracker.com/projects/345.
If you'd rather not receive contributions like this, reply
no-more-prson this pull request and we won't open any further ones on your repositories.Lawrence W. Sinclair
CEO / East Agile
linkedin.com/in/lwsinclair/
eastagile.com