Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DH-301] hopefully fixing bash arrays + parsing #6030

Conversation

shaneknapp
Copy link
Contributor

after checking out the results/execution logs of one of the new github workflows (https://github.com/berkeley-dsep-infra/datahub/actions/runs/10584196501/job/29327903196) i noticed that the hub names to deploy weren't properly being added to the array i defined called HUBS:

image

this is odd, and i even tested locally and it should have properly populated the list:

(dh) ➜  workflows git:(more-bash-logic-shennanigans) ✗ a=(); a+="asdf"; a+="fdas"; echo $a
asdf fdas

so... i think the extra space in this expression will force things to work: `HUB+="$hub "

however, this is a sign that i think we should NOT use bash for stuff like this and instead have some small python helper scripts that will at least behave in an expected way.

@shaneknapp
Copy link
Contributor Author

i manually added two hub labels for no-op testing when i merge to staging.

@shaneknapp shaneknapp merged commit 3ddd5a7 into berkeley-dsep-infra:staging Aug 27, 2024
22 checks passed
@shaneknapp shaneknapp deleted the more-bash-logic-shennanigans branch August 27, 2024 19:52
@shaneknapp
Copy link
Contributor Author

ok that seemed to work!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant