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

chore(smoketest): clean up scripts for relative paths, shellcheck hints #131

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

andrewazores
Copy link
Member

@andrewazores andrewazores commented Oct 27, 2023

Welcome to Cryostat3! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Related to #35
Depends on #129

@andrewazores andrewazores added the chore Refactor, rename, cleanup, etc. label Oct 27, 2023
@github-actions
Copy link

This PR/issue depends on:

@mwangggg
Copy link
Member

Is there a reason for the change from generate.sh to generate.bash? Should smoketest.sh also be changed to smoketest.bash?

@andrewazores
Copy link
Member Author

The .sh vs .bash extension change is just to better indicate what kind of script the file actually contains. Since the scripts rely on Bash-specific syntaxes they use (or should use) the #!/usr/bin/env bash shebang line to ensure that the script is interpreted using Bash, and including .bash as part of the filename just helps the reader to identify that, and may also be useful for syntax highlighting for editors for example.

Other scripts that use #!/usr/bin/sh and end in .sh can stay that way if they don't use Bash-specific syntax extensions on top of what POSIX sh implements, or they can be "upgraded" to use Bash even if they don't use any Bash-specific syntaxes. Maybe for consistency/simplicity I'll change all scripts to specify Bash.

@mwangggg
Copy link
Member

I think the smoketesting for k8s section in README.md will also need to be upated with bash smoketest.bash now

@mwangggg
Copy link
Member

mwangggg commented Nov 1, 2023

I think after the db entrypoint was changed in #129, the entrypoint in db_k8s.yml needs to be updated

@andrewazores
Copy link
Member Author

I'll fix that in #136

Copy link
Member

@mwangggg mwangggg left a comment

Choose a reason for hiding this comment

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

lgtm

@andrewazores andrewazores merged commit 446493e into cryostatio:main Nov 1, 2023
8 checks passed
@andrewazores andrewazores deleted the smoketest-cleanup branch November 1, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactor, rename, cleanup, etc. safe-to-test
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants