-
Notifications
You must be signed in to change notification settings - Fork 25
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
Core TravisCI not submitting results to hosting automated tests. #22
Comments
Does (I know I originally wrote and committed that change, but I don't recall if there was a specific reason I configured If it needs to be run in the container, we can explore adding the tools it needs. Adding |
Off the top of my head, I can't think of a reason it would need to be run inside a separate container. Assuming everything it needs is available in the Travis instance, of course. |
It should be available, and it's much easier to install on Travis (and change in the future, if necessary) if there's anything missing. I'll close this issue, since it shouldn't require any docker image changes, but feel free to ping me on tickets/PRs elsewhere if you need extra eyeballs. 🙂 |
Okay. I think I figured out why it was likely set up that way. I suspect it's because environment information is collected as part of the report, and that information is different where the tests are run (in the php docker container) vs. the TravisCI instance. That's useful information for figuring out why the tests might be failing from one test reporter and not another. |
Thinking on this a little more, an extra note: The reporting part of the test runner could use some refactoring that might line up with this, too. |
Oh, yeah. That sounds familiar. Exploring whether the info can be collected from the Docker container is a good option. (Ticket, for reference: /WordPress/phpunit-test-runner#111) |
Thanks for the ping! I've made progress on the refactoring, but it'd definitely be simpler if the environment check/gathering doesn't have to be separately uploaded or piped in as its own command. Do you think it'd make sense to add |
Yeah, I think it's fine to put |
Cool, I can put together a PR. I think ideally that would get bumped to a higher version right now (probably the subject for a PR/patch for core Travis), and certainly will be in the future. Do you think it's better to only have the package added to the one version of PHP that is currently being used for result submission, or to add it to all of them? If only to one, we'll have to remember to update this when that happens. If only adding to the one being used for tests, could consider a config argument/variable (like is used for composer) to make it clearer why the package is only on one version, and make it a little harder to miss when it gets changed on the core side. |
All of them are fine. Decisions, not options. 😉 |
Adds `rsync` to all PHP Dockerfiles to allow core TravisCI to successfuly submit results of tests to the distributed hosting tests. See: /WordPress/issues/22
Okay, thank you! Still learning how this works, but submitted a PR to build the images for testing. |
Thanks so much @pento ! Looks like we're almost there: I think this finishes things for this repo. I'm guessing the next step is to pass the I can start a trac ticket/patch for that part. |
Trac ticket: https://core.trac.wordpress.org/ticket/49846 |
The WordPress Hosting Team has a distributed automated test project that collects PHPUnit test results from hosts.
As part of this, WordPress.org's TravisCI reports to that page. Currently, this is used to email hosts if Core's tests are passing, but theirs are not.
However, currently, core's tests aren't being submitted:
https://travis-ci.com/WordPress/wordpress-develop/jobs/293698369#L3345
From the logs, it looks like a couple of packages might be missing on the docker environment where the tests are being reported with:
@aaronjorbin recommended creating an issue here, so that the packages can be added, to the appropriate image, which is why I'm here!
If that doesn't work out, @ocean90 also recommended seeing if we could change how some of this works on the runner side, or making a new image just for submissions.
Conversation on both of those started here, on Slack.
The text was updated successfully, but these errors were encountered: