Skip to content

Refactor noxfile #686

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

Merged
merged 2 commits into from
Nov 29, 2016
Merged

Refactor noxfile #686

merged 2 commits into from
Nov 29, 2016

Conversation

theacodes
Copy link
Contributor

No description provided.

Change-Id: Ica205635543f07cc1b8f5a619ab58576fed5da30
@theacodes theacodes added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 28, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 28, 2016
@theacodes theacodes removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 28, 2016
@theacodes
Copy link
Contributor Author

This refactor isolates every samples' run from all others, each sample now has an isolated virtualenv. This will make complete builds slower, but incremental builds shouldn't suffer.

This will also make it easier for us to add user journey tests.

This is used when running the linter to insure that import order is
properly checked.
"""
return [
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest breaking out nested comprehension into two lines, slightly hard to follow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

requirements_files.append('./testing/requirements-dev.in')
print('The following samples do not have tests:')
for sample in set(ALL_SAMPLE_DIRECTORIES) - set(ALL_TESTED_SAMPLES):
print('*', sample)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is intentional? Expected something like print('*{}').format(sample) .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@waprin
Copy link
Contributor

waprin commented Nov 29, 2016

lgtm

Change-Id: I06a4ec7a542eb88ca367fd1936fa499aac4045ff
@theacodes
Copy link
Contributor Author

Merging, can address other comments in follow-ups.

@theacodes theacodes merged commit 4b094c1 into master Nov 29, 2016
@theacodes theacodes deleted the nox-refactor branch November 29, 2016 18:10
@@ -6,7 +6,7 @@ if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
source ${TRAVIS_BUILD_DIR}/testing/test-env.sh;
export GOOGLE_APPLICATION_CREDENTIALS=${TRAVIS_BUILD_DIR}/testing/service-account.json
export GOOGLE_CLIENT_SECRETS=${TRAVIS_BUILD_DIR}/testing/client-secrets.json
nox --stop-on-first-error -s lint travis;
nox --stop-on-first-error -s lint gae py35;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not testing py27 anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We weren't before either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants