-
Notifications
You must be signed in to change notification settings - Fork 493
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
Split expect tests into separate circleci group #2792
Changes from all commits
3e92496
9bbb118
558905b
1cb2894
5c77a3b
6e754ff
d2b44a2
0c864f2
fece87b
c70055d
85d8860
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,23 @@ workflows: | |
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
context: slack-secrets | ||
- amd64_e2e_expect: | ||
requires: | ||
- amd64_build | ||
filters: | ||
branches: | ||
ignore: | ||
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
- amd64_e2e_expect_nightly: | ||
requires: | ||
- amd64_build | ||
filters: | ||
branches: | ||
only: | ||
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
context: slack-secrets | ||
- arm64_build | ||
- arm64_test: | ||
requires: | ||
|
@@ -114,6 +131,23 @@ workflows: | |
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
context: slack-secrets | ||
- arm64_e2e_expect: | ||
requires: | ||
- arm64_build | ||
filters: | ||
branches: | ||
ignore: | ||
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
- arm64_e2e_expect_nightly: | ||
requires: | ||
- arm64_build | ||
filters: | ||
branches: | ||
only: | ||
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
context: slack-secrets | ||
- mac_amd64_build | ||
- mac_amd64_test: | ||
requires: | ||
|
@@ -166,6 +200,23 @@ workflows: | |
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
context: slack-secrets | ||
- mac_amd64_e2e_expect: | ||
requires: | ||
- mac_amd64_build | ||
filters: | ||
branches: | ||
ignore: | ||
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
- mac_amd64_e2e_expect_nightly: | ||
requires: | ||
- mac_amd64_build | ||
filters: | ||
branches: | ||
only: | ||
- /rel\/.*/ | ||
- /hotfix\/.*/ | ||
context: slack-secrets | ||
#- windows_x64_build | ||
|
||
commands: | ||
|
@@ -473,6 +524,33 @@ jobs: | |
event: fail | ||
template: basic_fail_1 | ||
|
||
amd64_e2e_expect: | ||
machine: | ||
image: ubuntu-2004:202104-01 | ||
resource_class: large | ||
environment: | ||
E2E_TEST_FILTER: "EXPECT" | ||
steps: | ||
- prepare_go | ||
- generic_integration: | ||
result_subdir: amd64-e2e_subs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The result_subdir here doesn't match |
||
short_test_flag: "-short" | ||
|
||
amd64_e2e_expect_nightly: | ||
machine: | ||
image: ubuntu-2004:202104-01 | ||
resource_class: large | ||
environment: | ||
E2E_TEST_FILTER: "EXPECT" | ||
steps: | ||
- prepare_go | ||
- generic_integration: | ||
result_subdir: amd64-e2e_subs_nightly | ||
no_output_timeout: 45m | ||
- slack/notify: | ||
event: fail | ||
template: basic_fail_1 | ||
|
||
arm64_build: | ||
machine: | ||
image: ubuntu-2004:202101-01 | ||
|
@@ -571,6 +649,35 @@ jobs: | |
event: fail | ||
template: basic_fail_1 | ||
|
||
arm64_e2e_expect: | ||
machine: | ||
image: ubuntu-2004:202101-01 | ||
resource_class: arm.large | ||
environment: | ||
E2E_TEST_FILTER: "EXPECT" | ||
steps: | ||
- checkout | ||
- prepare_go | ||
- generic_integration: | ||
result_subdir: arm64-e2e_subs | ||
short_test_flag: "-short" | ||
|
||
arm64_e2e_expect_nightly: | ||
machine: | ||
image: ubuntu-2004:202101-01 | ||
resource_class: arm.large | ||
environment: | ||
E2E_TEST_FILTER: "EXPECT" | ||
steps: | ||
- checkout | ||
- prepare_go | ||
- generic_integration: | ||
result_subdir: arm64-e2e_subs-nightly | ||
no_output_timeout: 45m | ||
- slack/notify: | ||
event: fail | ||
template: basic_fail_1 | ||
|
||
mac_amd64_build: | ||
macos: | ||
xcode: 12.0.1 | ||
|
@@ -687,6 +794,39 @@ jobs: | |
event: fail | ||
template: basic_fail_1 | ||
|
||
mac_amd64_e2e_expect: | ||
macos: | ||
xcode: 12.0.1 | ||
resource_class: large | ||
environment: | ||
E2E_TEST_FILTER: "EXPECT" | ||
HOMEBREW_NO_AUTO_UPDATE: "true" | ||
steps: | ||
#- run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow | ||
- prepare_go | ||
- generic_integration: | ||
result_subdir: mac-amd64-e2e_subs | ||
circleci_home: /Users/distiller | ||
short_test_flag: "-short" | ||
|
||
mac_amd64_e2e_expect_nightly: | ||
macos: | ||
xcode: 12.0.1 | ||
resource_class: large | ||
environment: | ||
E2E_TEST_FILTER: "EXPECT" | ||
HOMEBREW_NO_AUTO_UPDATE: "true" | ||
steps: | ||
#- run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow | ||
- prepare_go | ||
- generic_integration: | ||
result_subdir: mac-amd64-e2e_subs-nightly | ||
circleci_home: /Users/distiller | ||
no_output_timeout: 45m | ||
- slack/notify: | ||
event: fail | ||
template: basic_fail_1 | ||
|
||
windows_x64_build: | ||
executor: | ||
name: win/default | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,13 @@ GOTESTCOMMAND=${GOTESTCOMMAND:="go test"} | |
|
||
TESTPATTERNS=() | ||
NORACEBUILD="" | ||
export RUN_EXPECT="FALSE" | ||
while [ "$1" != "" ]; do | ||
case "$1" in | ||
-e) | ||
# The test code checks this variable. | ||
export RUN_EXPECT="TRUE" | ||
;; | ||
-t) | ||
shift | ||
TESTPATTERNS+=($1) | ||
|
@@ -30,6 +35,11 @@ while [ "$1" != "" ]; do | |
shift | ||
done | ||
|
||
if [[ -n $TESTPATTERNS && -n $RUN_EXPECT ]]; then | ||
echo "-t and -e are mutually exclusive." | ||
exit 1 | ||
fi | ||
|
||
# Anchor our repo root reference location | ||
REPO_ROOT="$( cd "$(dirname "$0")" ; pwd -P )"/../.. | ||
|
||
|
@@ -89,18 +99,24 @@ if [[ "${ARCHTYPE}" = arm* ]]; then | |
PARALLEL_FLAG="-p 1" | ||
fi | ||
|
||
PACKAGES="./..." | ||
if [ "$RUN_EXPECT" != "" ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this means that whether or not RUN_EXPECT is set to FALSE or TRUE (and it is set to FALSE by default at the top of this file) we will only ever run the expect tests. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opened #2863 |
||
PACKAGES=$(go list ./...|grep expect) | ||
fi | ||
|
||
echo "PARALLEL_FLAG = ${PARALLEL_FLAG}" | ||
echo "PACKAGES = ${PACKAGES}" | ||
|
||
if [ "${#TESTPATTERNS[@]}" -eq 0 ]; then | ||
${GOTESTCOMMAND} ${RACE_OPTION} ${PARALLEL_FLAG} -timeout 1h -v ${SHORTTEST} ./... | ||
${GOTESTCOMMAND} ${RACE_OPTION} ${PARALLEL_FLAG} -timeout 1h -v ${SHORTTEST} ${PACKAGES} | ||
else | ||
for TEST in ${TESTPATTERNS[@]}; do | ||
${GOTESTCOMMAND} ${RACE_OPTION} ${PARALLEL_FLAG} -timeout 1h -v ${SHORTTEST} -run ${TEST} ./... | ||
${GOTESTCOMMAND} ${RACE_OPTION} ${PARALLEL_FLAG} -timeout 1h -v ${SHORTTEST} -run ${TEST} ${PACKAGES} | ||
done | ||
fi | ||
|
||
if [ ${CLEANUP_TEMPDIR} -ne 0 ]; then | ||
rm -rf ${TEMPDIR} | ||
rm -rf "${TEMPDIR}" | ||
fi | ||
|
||
echo "----------------------------------------------------------------------" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these tests were running as part of the "integration" job before, so this upgrades the resource_class from "medium" to "large" — we might want to go back down