Skip to content

Conversation

@bricerisingalgorand
Copy link
Contributor

@bricerisingalgorand bricerisingalgorand commented Jul 6, 2021

Summary

I'm making this PR at the start of work so that I can continuously see that it's running the circleci jobs correctly. Below are the items I am working on:

  • Add mac
  • Right size instances
  • Collect coverage reports
  • Make sure parallelism is 1 everywhere
  • Maybe break out e2e subs into another job

Will do later

  • Implement linter to enforce partition line in test files
  • Optimize package installs

PACKAGE_NAMES=$(echo $PACKAGES | tr -d '\n')
echo "Testing the following packages:"
echo $PACKAGE_NAMES
gotestsum --format pkgname --junitfile $TEST_RESULTS/results.xml --jsonfile $TEST_RESULTS/testresults.json -- ${RACE_OPTION} ${PARALLEL_FLAG} -timeout 1h -v ${SHORTTEST} ${PACKAGE_NAMES}
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately, I don't think this change is quite right. GOTESTCOMMAND isn't being set and it defaults to go test, so after this change we'll revert back to go test. If we switch to calling make integration instead of no longer be setting ./test/scripts/run_integration_tests.sh, then GOTESTCOMMAND will be set but wont include --junitfile $TEST_RESULTS/results.xml --jsonfile $TEST_RESULTS/testresults.json.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is some dead code and so this code path was not being exercised because USE_CIRCLECI_SPLIT is not set anywhere. This commit should have no effect on the tests we're running in CircleCI.

I'm not sure how running make targets will work after attaching a workspace saved by a different job.

@algobarb algobarb requested a review from onetechnical July 22, 2021 14:07
@algobarb algobarb marked this pull request as ready for review July 22, 2021 14:09
@bricerisingalgorand
Copy link
Contributor Author

Could you update your review if you think it looks ok @tsachiherman?

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.

Approved pending follow-up tickets (my priorities in parens):

  1. verify codecov report still working and correct (high)
  2. router_test.go test suite isn't partitioned (high)
  3. unify gotestsum configuration (medium)
  4. consistent SKIP_E2E_SUBS / E2E_SUBS_ONLY convention - SKIP_ or ENABLE_, not both. (medium)
  5. NO_GIMME -> SKIP_GO_INSTALLATION (medium)
  6. verify that go e2e tests are included in reporting, I think that gotestsum may not be properly initialized (medium)
  7. unify script changes (medium-low)
  8. fix import orders to match our convention (low)

@algojohnlee algojohnlee merged commit 58fd804 into algorand:master Jul 22, 2021
tmc pushed a commit to tmc/go-algorand that referenced this pull request Mar 7, 2025
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.