Skip to content
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

Integrate airtap #345

Merged
merged 14 commits into from
Jul 7, 2018
Merged

Integrate airtap #345

merged 14 commits into from
Jul 7, 2018

Conversation

mcollina
Copy link
Member

@mcollina mcollina commented Jul 5, 2018

Supersedes #340 because of the elevated permission to run Sauce Labs with travis

package.json Outdated
@@ -24,6 +25,8 @@
"scripts": {
"test": "tap -j 4 test/parallel/*.js test/ours/*.js",
"ci": "TAP=1 tap test/parallel/*.js test/ours/*.js | tee test.tap",
"test-browsers": "airtap --sauce-connect --no-coverage -- test/browser.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

With latest airtap (0.0.9) you no longer need --no-coverage. Collecting code coverage became opt-in.

@mcollina
Copy link
Member Author

mcollina commented Jul 5, 2018

I'm getting:

Error:
Airtap tried to run tests in Sauce Labs, however no credentials were provided.
See doc/cloud-testing.md for info on how to setup cloud testing.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readable-stream@3.0.0-dev0 test-browsers: `airtap --sauce-connect -- test/browser.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the readable-stream@3.0.0-dev0 test-browsers script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2018-07-05T09_32_02_611Z-debug.log

have you got any clues? cc @vweevers @ralphtheninja

.travis.yml Outdated
script: npm run $CMD
env:
global:
- secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc=
- secure: g9YINaKAdMatsJ28G9jCGbSaguXCyxSTy+pBO6Ch0Cf57ZLOTka3HqDj8p3nV28LUIHZ3ut5WO43CeYKwt4AUtLpBS3a0dndHdY6D83uY6b2qh5hXlrcbeQTq2cvw2y95F7hm4D1kwrgZ7ViqaKggRcEupAL69YbJnxeUDKWEdI=
- secure: nk/kDUZV385ey9kkrGi6EHvnslTAW+GEHGrjbFIsb8Foq01bL9oj0uPaVc5kaVWCHst3WsIdVMA1Hos/lN/WMHRyfOiSrVVWv0sVnzg0YaM9cBbn5jwXn30Z645REgQcoEDKrYFp8rE3RpPFgYDFWNh948qwPtwtnwNhoq/Gd9A=

Choose a reason for hiding this comment

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

@mcollina These are different from 40bd7ad which worked?

Choose a reason for hiding this comment

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

Oh, you might need to escape the / there

screenshot from 2018-07-05 12-16-11

@ralphtheninja
Copy link

From airtap:

} else if (!config.username || !config.key) {                                                                                                                                                                      
  console.error(chalk.red('Error:'))                                                                                                                                                                               
  console.error(chalk.red('Airtap tried to run tests in Sauce Labs, however no credentials were provided.'))                                                                                                       
  console.error(chalk.cyan('See doc/cloud-testing.md for info on how to setup cloud testing.'))                                                                                                                    
  process.exit(1)                                                                                                                                                                                                  
}

And username and key are set as:

config.username = process.env.SAUCE_USERNAME || config.sauce_username                                                                                                                                              
config.key = process.env.SAUCE_ACCESS_KEY || config.sauce_key                                                                                                                                                      

@mcollina To which environment variables are you setting the secure values?

@ralphtheninja
Copy link

@vweevers I'm on my way to Amsterdam and have to pack so don't have more time atm. Maybe you can jump in a bit?

@mcollina
Copy link
Member Author

mcollina commented Jul 5, 2018

SAUCE_USERNAME and SAUCE_ACCESS_KEY.

But here is what I'm seeing on travis-ci.com:

https://travis-ci.com/nodejs/readable-stream/jobs/132925702#L430-L431

@vweevers
Copy link
Contributor

vweevers commented Jul 5, 2018

Maybe try defining the vars in Travis instead?

image

@mcollina
Copy link
Member Author

mcollina commented Jul 5, 2018

Setting in on travis worked!!!

@mcollina
Copy link
Member Author

mcollina commented Jul 7, 2018

Works on IE 11 as well. Hurray!

@mcollina mcollina merged commit 524f6ee into next Jul 7, 2018
@mcollina mcollina deleted the next-airtap branch July 7, 2018 14:14
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