Skip to content

Refactor noxfile#686

Merged
theacodes merged 2 commits into
masterfrom
nox-refactor
Nov 29, 2016
Merged

Refactor noxfile#686
theacodes merged 2 commits into
masterfrom
nox-refactor

Conversation

@theacodes

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread nox.py
This is used when running the linter to insure that import order is
properly checked.
"""
return [

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread nox.py Outdated
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@waprin

waprin commented Nov 29, 2016

Copy link
Copy Markdown
Contributor

lgtm

Change-Id: I06a4ec7a542eb88ca367fd1936fa499aac4045ff
@theacodes

Copy link
Copy Markdown
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
Comment thread scripts/travis.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
Copy Markdown
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
Copy Markdown
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