Skip to content

Conversation

@joehan
Copy link
Member

@joehan joehan commented Jan 15, 2019

Description

  • Integration tests now wait 50 seconds after deploying to ensure that function changes propagate
  • Intergration tests now retry deployment 2 times in the case of failure
  • integration_tests/run_tests.sh now can be given 2 project ids, and will run node6 and node8 tests in parallel on the 2 different projects.

Code sample

./run_tests.sh project1 project2 // runs node6 tests on project1 and node8 tests on project2, in parallel
./run_tests.sh projectId // runs node6 and node8 tests on projectId, in series

.then(() => {
console.log('All tests pass!');
resp.status(200).send('PASS');
resp.status(200).send('PASS \n');
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, this was bothering me :P

deploy
waitForPropagation
run_tests
else
Copy link
Contributor

Choose a reason for hiding this comment

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

It took me some time to understand the difference between the two flows, but I understand why you needed to do them like this. Perhaps in the future we can keep the parallel deploys for node6 and node8 and find a way to have each test have a different name - that way we can keep the same flow for when the projects are the same (both would use the else part here).

Co-Authored-By: joehan <joehanley@google.com>
deploy
waitForPropagation
run_all_tests
fi

This comment was marked as resolved.

@joehan joehan merged commit fe3d410 into master Jan 16, 2019
@joehan joehan deleted the jh-better-it branch January 16, 2019 21:51
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.

3 participants