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

Extended tests should store their dependent fixture data in bindata #13361

Merged
merged 5 commits into from
Mar 19, 2017

Conversation

smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented Mar 12, 2017

To make it easier to use the extended test suites generated by the RPM, we now create a bootstrap file for extended tests that contains all the fixture data needed to run the tests. The EXTENDED_TEST_PATH variable is no longer respected.

All fixtures in test/extended/testdata and some in examples are added automatically when you run hack/update-generated-bindata.sh. To access a fixture, use the FixturePath(path) accessor inside of the test utility framework, which will copy the file to disk and give you the path.

Be careful about what you add to the fixtures in terms of size, since it will be checked in to the repo and then generated to all binaries.

@smarterclayton
Copy link
Contributor Author

@stevekuznetsov this may have problems, since we have some hygiene problems with our fixture data. Not everything is going to play well here, especially things that do docker builds.

@smarterclayton smarterclayton force-pushed the more_bindata branch 2 times, most recently from b1d6214 to ba8d905 Compare March 13, 2017 00:54
@smarterclayton
Copy link
Contributor Author

Looks like this is working - we won't get kube e2e though until 1.6 rebase lands.

@bparees because your tests pull in a lot of stuff

@bparees
Copy link
Contributor

bparees commented Mar 13, 2017

looks reasonable to me, but what's the motivation? making the extended test execution more self-contained?

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Mar 13, 2017 via email

@stevekuznetsov
Copy link
Contributor

@bparees we want to be able to ship actually functional tests in the origin-tests RPM, etc

@smarterclayton smarterclayton force-pushed the more_bindata branch 3 times, most recently from d637347 to e853240 Compare March 16, 2017 19:19
@smarterclayton
Copy link
Contributor Author

I've fixed all the normal build problems, any other comments @stevekuznetsov or @bparees or @csrwng ?

Once the image_ecosystem tests run I'm going to merge this and then advise people on how to fix.

@smarterclayton
Copy link
Contributor Author

[testextended][extended:core(image_ecosystem)]

@csrwng
Copy link
Contributor

csrwng commented Mar 17, 2017

LGTM

@smarterclayton
Copy link
Contributor Author

Green. Will merge tomorrow unless other comments.

@smarterclayton
Copy link
Contributor Author

[merge]

@smarterclayton
Copy link
Contributor Author

[merge]

2 similar comments
@smarterclayton
Copy link
Contributor Author

[merge]

@smarterclayton
Copy link
Contributor Author

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 8d3c201

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to 8d3c201

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/303/) (Base Commit: b9dbbff)

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/55/) (Base Commit: b9dbbff) (Extended Tests: core(image_ecosystem))

@smarterclayton
Copy link
Contributor Author

ActivateDevice flake [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 8d3c201

@openshift-bot
Copy link
Contributor

openshift-bot commented Mar 19, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/145/) (Base Commit: b9dbbff) (Image: devenv-rhel7_6087)

@openshift-bot openshift-bot merged commit 7fe74fd into openshift:master Mar 19, 2017
@smarterclayton smarterclayton changed the title Try moving extended tests to bindata Extended tests should store their dependent fixture data in bindata Mar 19, 2017
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.

5 participants