-
Notifications
You must be signed in to change notification settings - Fork 27.4k
chore: fix tests and CI flakiness #16806
Changes from all commits
302ce17
993a445
ac73fce
a99ebed
c57688a
119bbd0
ac459f8
b96d334
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 |
---|---|---|
|
@@ -11,14 +11,14 @@ set -e | |
# Curl and run this script as part of your .travis.yml before_script section: | ||
# before_script: | ||
# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash | ||
SC_VERSION="4.5.1" | ||
SC_VERSION="4.5.2" | ||
CONNECT_URL="https://saucelabs.com/downloads/sc-$SC_VERSION-linux.tar.gz" | ||
CONNECT_DIR="/tmp/sauce-connect-$RANDOM" | ||
CONNECT_DOWNLOAD="sc-$SC_VERSION-linux.tar.gz" | ||
|
||
CONNECT_LOG="$LOGS_DIR/sauce-connect" | ||
CONNECT_STDOUT="$LOGS_DIR/sauce-connect.stdout" | ||
CONNECT_STDERR="$LOGS_DIR/sauce-connect.stderr" | ||
# We don't want to create a log file because sauceconnect always logs in verbose mode. This seems | ||
# to be overwhelming Travis and causing flakes when we are cat-ing the log in "print_logs.sh" | ||
CONNECT_LOG="/dev/null" | ||
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. Interesting! 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. TBH, I don't know if it was actually affecting flakiness. I was just porting bits that looked useful from Angular PRs. (This came from angular/angular#27657.) |
||
|
||
# Get Connect and start it | ||
mkdir -p $CONNECT_DIR | ||
|
@@ -42,9 +42,6 @@ if [ ! -z "$BROWSER_PROVIDER_READY_FILE" ]; then | |
fi | ||
|
||
|
||
echo "Starting Sauce Connect in the background, logging into:" | ||
echo " $CONNECT_LOG" | ||
echo " $CONNECT_STDOUT" | ||
echo " $CONNECT_STDERR" | ||
echo "Starting Sauce Connect in the background" | ||
sauce-connect/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY $ARGS \ | ||
--logfile $CONNECT_LOG 2> $CONNECT_STDERR 1> $CONNECT_STDOUT & | ||
--logfile $CONNECT_LOG & |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ | |
"jquery": "3.2.1", | ||
"jquery-2.1": "npm:[email protected]", | ||
"jquery-2.2": "npm:[email protected]", | ||
"karma": "3.1.1", | ||
"karma": "^3.1.4", | ||
"karma-browserstack-launcher": "^1.3.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-edge-launcher": "^0.4.2", | ||
|
@@ -71,7 +71,7 @@ | |
"karma-jasmine": "^1.1.2", | ||
"karma-junit-reporter": "^1.2.0", | ||
"karma-safari-launcher": "^1.0.0", | ||
"karma-sauce-launcher": "^1.2.0", | ||
"karma-sauce-launcher": "^2.0.2", | ||
"karma-script-launcher": "^1.0.0", | ||
"karma-spec-reporter": "^0.0.32", | ||
"load-grunt-tasks": "^3.5.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ for FILE in $LOG_FILES; do | |
echo "================================================================================" | ||
echo " $FILE" | ||
echo "================================================================================" | ||
cat $FILE | ||
cat $FILE || true | ||
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. Can this 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. If there are no log files, then |
||
done |
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.
Is this not the default?
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.
According to the docs, the default is
['polling', 'websocket']
and it is not clear if ordering makes a difference, so I thought it wouldn't hurt to match angular/angular#27634.But, yeah, this might be redundant.
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.
It seems that socket.io will
So if I understand it,
['polling', 'websocket']
would connect with polling initially and then try to connect via a websocket. Seems strange but I guess that polling comes up quicker for short-lived connections?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.
🤷♂️