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

.travis.yml: Rebuild schema-fs in the Travis tests #530

Closed

Conversation

wking
Copy link
Contributor

@wking wking commented Jan 26, 2017

And error out if that fails. This would have caught a bug where #444 passes but 111a99d (which merged #444) fails after a schema-fs rebuild.

@wking wking force-pushed the rebuild-schema-fs-for-testing branch 2 times, most recently from 8154b26 to f544320 Compare January 26, 2017 00:23
@wking wking force-pushed the rebuild-schema-fs-for-testing branch 2 times, most recently from dfa0afb to 0998d27 Compare January 26, 2017 00:47
@wking
Copy link
Contributor Author

wking commented Jan 26, 2017

Ok, I think 2d54423 has everything we need. The tests are still failing, but that's catching the breakage from #411 which is addressed in #531. Once #531 lands, I'll rebase this PR on top.

@jonboulle
Copy link
Contributor

Ready for rebase

So we can 'make schema-fs' in Travis.

Signed-off-by: W. Trevor King <wking@tremily.us>
And error out if that fails.  'make schema-fs' is in before_install,
since things are really broken in that case and we want to error the
build exit immediately [1].  If someone forgot to run schema-fs,
that's less serious and we only want to fail the build (and still run
the other tests) [1].

[1]: https://docs.travis-ci.com/user/customizing-the-build/#Breaking-the-Build

Signed-off-by: W. Trevor King <wking@tremily.us>
To give reproducible builds regardless of when you check the JSON
files out of Git.

Signed-off-by: W. Trevor King <wking@tremily.us>
To zero out the modtimes (picking up the change from the previous
commit).

Generated with:

  $ make schema-fs

Signed-off-by: W. Trevor King <wking@tremily.us>
@wking wking force-pushed the rebuild-schema-fs-for-testing branch from 2d54423 to 4112ba1 Compare January 27, 2017 15:09
@wking
Copy link
Contributor Author

wking commented Jan 27, 2017 via email

@wking
Copy link
Contributor Author

wking commented Jan 27, 2017

Hmm, looks like there's some unstable compression. I wonder if we can turn that off…

@vbatts
Copy link
Member

vbatts commented Jan 27, 2017

I just fixed this in #533 in a nicer way that doesn't require travis.

@stevvooe
Copy link
Contributor

I just fixed this in #533 in a nicer way that doesn't require travis.

Want to pull this out into a separate PR or do we want to push #533 through?

@stevvooe
Copy link
Contributor

@wking @vbatts Also, closing this, since @vbatts has a solution.

@stevvooe stevvooe closed this Jan 27, 2017
@wking
Copy link
Contributor Author

wking commented Jan 27, 2017 via email

@vbatts
Copy link
Member

vbatts commented Jan 27, 2017

@wking https://github.com/opencontainers/image-spec/pull/533/files#diff-b67911656ef5d18c4ae36cb6741b7965R79 sorry. I should've included a link.

By running make validate-examples whether local or on travis, it will ensure they're fresh.

@wking
Copy link
Contributor Author

wking commented Jan 27, 2017 via email

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.

4 participants