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

Improve release automation with automated test running #490

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

TheDuckCow
Copy link
Member

Useful to ensure there is consistency during releases. This still requires local, manual running in the meantime, but would be plausible to further automated with github actions once we are comfortable with it.

@TheDuckCow
Copy link
Member Author

For reference, this was the exact script used to generate the initial draft of the MCprep v3.5.0 release (including the local mods of the test runner, so that we could extract an exit code).

@TheDuckCow TheDuckCow requested a review from a team October 2, 2023 23:12
@@ -0,0 +1,103 @@
source venv/bin/activate
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a shebang so we know what shell this is compatible with

Copy link
Collaborator

@StandingPadAnimations StandingPadAnimations left a comment

Choose a reason for hiding this comment

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

Again, since no one wants to take charge with reviewing this, I've reviewed this PR (at least the shell script). I'm basing a lot of my comments off of shellcheck's output (assuming this is also Bash).

There are a couple of things in this script that would be issues in Bash, but not in Zsh (the shell macOS uses as its default). While I assume this is a script meant to be ran with Bash, it would be interesting to make this POSIX compatible (i.e., no Bash, no Zsh, just standard POSIX), but that's not a huge requirement.

Since I'm on break (#481), I won't approve or reject this PR; that should come from someone else on the team 😅

push_latest.sh Show resolved Hide resolved
push_latest.sh Show resolved Hide resolved
push_latest.sh Outdated Show resolved Hide resolved
push_latest.sh Outdated Show resolved Hide resolved
push_latest.sh Outdated Show resolved Hide resolved
push_latest.sh Outdated Show resolved Hide resolved
@TheDuckCow TheDuckCow merged commit 7bcad1d into dev Nov 10, 2023
@TheDuckCow TheDuckCow deleted the set-test-output-status-code branch November 10, 2023 17:07
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.

None yet

2 participants