Skip to content

Experiment with "Checks" in Travis output #1081

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 7 commits into from
May 24, 2019

Conversation

andrewn
Copy link
Member

@andrewn andrewn commented May 22, 2019

Do not merge

I'm creating this PR to experiment with the types of information that appears in the Checks tab.

Ideally we'd want:

  • lint errors
  • lint warnings?
  • test failures

@andrewn
Copy link
Member Author

andrewn commented May 23, 2019

I don't think Travis has any way to collect metadata from build steps to display in GitHub. So, although we'll know that checks have failed, we'll still need to go through the build log output on travis-ci.com to see what exactly failed. Very sad.

lint and test jobs will run in parallel and if both are successful
(and branch is master), deploy will run.
@andrewn
Copy link
Member Author

andrewn commented May 23, 2019

I've split the build into two stages: test and deploy.

test has two jobs linting and tests that will run in parallel. If either fail then deploy will not run (and will only run on master).

The Checks tab now displays info about which job has failed. This isn't as good as the fine-grained items you get with Circle CI:

Screenshot 2019-05-23 11 01 34

@catarak
Copy link
Member

catarak commented May 23, 2019

very cool! let me know when this is ready to merge!

@andrewn
Copy link
Member Author

andrewn commented May 24, 2019

I've reverted the linting error and fixed the failing test so the check should now pass.

It's a shame Travis doesn't send a fine-grained breakdown of what's failed to GitHub but I think it's good enough for now.

As an aside, 93c226c shows why I don't think snapshot tests are very useful. Something in the Nav component has changed, but the JSON diff doesn't really give me any information about whether that change was OK or not. Unit testing the same component would capture the intent around it's behaviour and let us see if a change is intentional or not.

@andrewn
Copy link
Member Author

andrewn commented May 24, 2019

It seems as though travis is running the deploy stage even on this branch... I'll try and figure out what's going on.

@andrewn
Copy link
Member Author

andrewn commented May 24, 2019

Ok, that seems to have worked. Travis won't run the top-level deploy command on PR builds.

@catarak I think this is ready to review/merge.

@andrewn andrewn changed the title [Do not merge] Experiment with "Checks" in Travis output Experiment with "Checks" in Travis output May 24, 2019
@catarak
Copy link
Member

catarak commented May 24, 2019

yay this looks great! merging ✨

@catarak catarak merged commit 137ea78 into processing:master May 24, 2019
@andrewn andrewn deleted the chore/travis-output branch May 27, 2019 09:57
catarak pushed a commit that referenced this pull request May 29, 2019
* Run tests on CI

* Create a lint error on purpose

* Splits build into test and deploy stages

lint and test jobs will run in parallel and if both are successful
(and branch is master), deploy will run.

* Revert "Create a lint error on purpose"

This reverts commit 306c91c.

* Updating snapshot

* Run deploy only on master branch (not PRs)

* Use global deploy config item to avoid building on PRs
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.

2 participants