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

CI: Add parameter to run Nightly Test #4299

Merged
merged 8 commits into from Jul 26, 2022
Merged

CI: Add parameter to run Nightly Test #4299

merged 8 commits into from Jul 26, 2022

Conversation

algobarb
Copy link
Contributor

@algobarb algobarb commented Jul 26, 2022

Summary

We want to easily run nightly test on any branch in the main repo.
Nightly tests remove the -short flag from tests. They are longer and more thorough. These tests are important especially for large feature branches.

With these changes, algorand devs can Trigger a pipeline on a branch in the go-algorand repo with:

  1. Go to CircleCI and specify Project and Branch
  2. Select "Trigger Pipeline"
  3. Add Parameter: valid_nightly_branch: {current_branch_name}, e.g. valid_nightly_branch: test/master-copy2
  4. During the amd_build_nightly test, it will upload to algorand-testdata/indexer/e2e4/fb2bec22/test-master-copy2.tar.bz2

Test Plan

Triggered the CircleCI job manually and provided the parameter. Made sure the filename is uploaded.
https://app.circleci.com/pipelines/github/algorand/go-algorand?branch=test%2Fmaster-copy2

@algobarb algobarb requested review from a team, egieseke, algojack and algolucky July 26, 2022 14:08
@algobarb algobarb changed the title [CI] Add parameter to run Nightly Test CI: Add parameter to run Nightly Test Jul 26, 2022
@algobarb
Copy link
Contributor Author

I cancelled the nightly tests since I just wanted to test to see if they would run with a triggered parameter and whether it would upload the file as expected.

@@ -15,6 +15,9 @@ parameters:
result_path:
type: string
default: "/tmp/build_test_results"
valid_nightly_branch:
type: string
default: /hotfix\/.*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice trick!

Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

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

LGTM

@cce cce merged commit 92e4f85 into master Jul 26, 2022
@cce cce deleted the test/master-copy2 branch July 26, 2022 17:07
winder pushed a commit to winder/go-algorand that referenced this pull request Jul 26, 2022
* Remove double-quotes and comments
* test adding valid_nightly_branch parameter
* update CI_E2E_FILENAME
* change circleci branch reference
* change where the variable is referenced
* add parameter expansion
* revert script name changes. Remove nightly from name
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.

None yet

5 participants