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

Fix Continuous Integration #292

Merged
merged 3 commits into from
Dec 15, 2018
Merged

Fix Continuous Integration #292

merged 3 commits into from
Dec 15, 2018

Conversation

smortex
Copy link
Member

@smortex smortex commented Dec 13, 2018

Pull Request (PR) description

Travis CI is currently broken. Fix some issues found while inspecting the situation and attempting to unbreak CI.

This Pull Request (PR) fixes the following issues

No actual issues fixed, but it should help making #290 and #291 pass.

We sleep 15 seconds to wait for GitLab to finish starting up, but because the
sleep is outside of any test case / context, it happen to be executed _before_
manifests to install GitLab are actually applied.

Move the sleep at the end of the first step of the test suite.
@smortex smortex force-pushed the fix-ci branch 2 times, most recently from c16571f to b6fdac8 Compare December 14, 2018 00:43
- Add scheme (http)
- Use 127.0.0.1 to address the node itself, not 0.0.0.0

This should fix:

```
ubuntu1604-64-1 06:39:31$ /bin/sh -c curl\ -s\ -S\ 0.0.0.0:80/users/sign_in
curl: (3) URL using bad/illegal format or missing URL
```
This may have helped diagnose the real source of the problems regarding CI.
@Dan33l
Copy link
Member

Dan33l commented Dec 14, 2018

@smortex ia ora na.

Thank you for this PR. It looks that only puppet6-nightly fail. I don't understand why. I'll make some checks locally as soon as possible.

@smortex
Copy link
Member Author

smortex commented Dec 14, 2018

@Dan33l As far as I can see, the remaining failures are transient ones: since 54cc33c, build failures are not reproducible (e.g. the test failing in 54cc33c pass in ccaa44b and there another test that passed previously that is failing).

I have no idea about how to improve this though 😞

@Dan33l
Copy link
Member

Dan33l commented Dec 14, 2018

@smortex this PR is interesting with sleep at right place and URL correctly called. Locally i ran it several times with centos7 and puppet6-nightly without any fail.

In the last push, job in Travis failed because of true fail, probably linked to network issue or something like this.

I asked to people with admin power in travis to rerun manually this uniq failing job. It should pass.
If so, i agree to merge the PR as is.

@smortex
Copy link
Member Author

smortex commented Dec 15, 2018

@Dan33l sure. I can also force commit or squash commits so that Travis re-schedule a build, but it takes about 2 hours to run a build…

I am not sure the sleep really helps here: as far as I can see, the build failures where the same when the sleep was running too early. Maybe it can be removed?

@Dan33l
Copy link
Member

Dan33l commented Dec 15, 2018

Where it was previously in the code, the sleep was executed before the pp code is applied. Now, where it is located, it looks to be applied after the pp code is applied. Gitlab is a bundle of several softwares, so it should be interesting to wait all process are started before to test the result.

@smortex smortex changed the title [WIP] Fix Continuous Integration Fix Continuous Integration Dec 15, 2018
@smortex
Copy link
Member Author

smortex commented Dec 15, 2018

For sure it does not harm, we can leave it as it is now. 👍

Copy link
Member

@Dan33l Dan33l left a comment

Choose a reason for hiding this comment

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

LGTM

@Dan33l Dan33l merged commit f95257a into voxpupuli:master Dec 15, 2018
This was referenced Dec 15, 2018
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