forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement(ci): combine build steps for integration test workflows (v…
…ectordotdev#17724) - vdev integration test logic has ability to build with all integration features flag - CI workflows use the new vdev flag, and are run within the same job, thus each step leverages the cached runner image - Adds retries for integration tests both at nextest and between bringup/teardown of the container services - Reduces billable time for Integration Test Suite workflow by 90% 🚀
- Loading branch information
Showing
17 changed files
with
739 additions
and
234 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Used in CI to run and stop an integration test and upload the results of it. | ||
# This is useful to allow retrying the integration test at a higher level than | ||
# the nextest and reduce code duplication in the workflow file. | ||
|
||
set -u | ||
|
||
if [[ -z "${CI:-}" ]]; then | ||
echo "Aborted: this script is for use in CI." >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ $# -ne 1 ] | ||
then | ||
echo "usage: $0 INTEGRATION" | ||
exit 1 | ||
fi | ||
|
||
set -x | ||
|
||
INTEGRATION=$1 | ||
|
||
cargo vdev -v int start "${INTEGRATION}" | ||
sleep 30 | ||
cargo vdev -v int test --retries 2 -a "${INTEGRATION}" | ||
RET=$? | ||
cargo vdev -v int stop -a "${INTEGRATION}" | ||
./scripts/upload-test-results.sh | ||
exit $RET |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters