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
Gate ostree-trivial-httpd on BUILDOPT_TRIVIAL_HTTPD #1912
Gate ostree-trivial-httpd on BUILDOPT_TRIVIAL_HTTPD #1912
Conversation
Can one of the admins verify this patch?
|
I did wonder when I did this if it was the way it was because of the tests... I guess this means it is. |
bot, add author to whitelist |
8b4e2bf
to
0eea2a1
Compare
bot, retest this please |
0eea2a1
to
456c8ca
Compare
I'm a bit confused on this... the f29 failures look totally unrelated to me - is this good to merge, or is there something I'm missing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's that easy, sure; but did you test make check
etc?
From a quick look, I think we'd need all of the tests which use OSTREE_HTTPD
to end up skipping if it's unset or so. This would be a lot...better to refactor the tests so that we also use a basic webserver like Python's or whatever, and only require trivial-httpd for the tests that use its tweaks like --random-500s=50
.
That was where I went wrong initially... so I added a initial commit which pushes Right now the combinations which get covered by Travis for
That's quite a lot more than I was really planning to do. I wonder if anyone's really using |
456c8ca
to
93d2c69
Compare
Hmm, OK. Will have to look to see how that's working.
Yeah I definitely don't expect you to dive into that. I hope no one is using it besides the tests. I think it might not actually be too hard though to split out the tests which use the trivial-httpd features. |
ce48bda
to
61f8bd8
Compare
This was just the f29 failing in setup, it's working now and I can see real failures... |
61f8bd8
to
2629328
Compare
@akiernan: 🔑 Insufficient privileges: Collaborator required |
2629328
to
99b7add
Compare
When running tests we always need ostree-trivial-httpd, so enable it unconditionally Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
When building without --enable-trivial-httpd-cmdline, don't build or install the ostree-trivial-httpd binary. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
99b7add
to
83d44ac
Compare
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akiernan, cgwalters The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sorry, but this is broken. What are you trying to achieve exactly? Why is building ostree-trivial-httpd a problem? |
Avoiding the libexec helper being installed in all cases. When I started looking at it, I guess I'd not realised that it really was just there as part of the test suite, not something most people will actually want. Maybe what I really want is just delete it after |
Debian puts it in a separate ostree-tests package since it's used by the installed tests. If you want to not install it at all (which would break the installed tests, but probably you don't care), then you could add |
I guess I waded into this assuming it was a bug... seems like that's not true and it's expected behaviour. Reverting it seems like the best approach and taking the debian route of packaging it separately. |
Revert trivial httpd changes (#1912)
When building without --enable-trivial-httpd-cmdline, don't build or install
the ostree-trivial-httpd binary.