-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Generate binaries only if there are changes in src code. #4762
Conversation
Hi @NevilleC. Thanks for your PR. I'm waiting for a containers member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1c66ba2
to
dc87656
Compare
dc87656
to
1d83018
Compare
1d83018
to
86c78ba
Compare
/retest |
@NevilleC: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
86c78ba
to
220be19
Compare
LGTM |
Thanks @NevilleC nice work. |
I have a nagging memory that we've tried this before and it broke the specfile build. I can't find the relevant code or emails, and |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: NevilleC, rhatdan 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 |
@NevilleC could you make sure that the rpm spec file still works. |
I think you should enable it in the build script. |
Changes I am making: 1. The target `.gopathok` was listed in `.PHONY` which looks wrong as it regenerates `.gopathok` every time we re-run it, which was a part of the issue. I removed it to avoid that. If `.gopathok` is present', makefile should not need to rerun it. 2. Ensure the binaries are created only if they don't exist by adding `bin/podman` and `bin/podman-remote`. 3. Add a `SOURCES = $(shell find . -name "*.go")` and put it as a dependency of the podman binaries target. It allows us to re-generate the binaries only when there is a change in the source files. The downside is it increases the running time of the command that generates them (20 seconds on my virtual machine running Centos 7). If this is a problem, we could introduce a hidden file that would list all the files to track, that would need to be updated only when a dev is introducing new files. 4. Fixed the make package-install as it does not work with yum. I updated the build_rpm.sh to ensure it works on centos 7 and centos 8 with no pre-required installation. Closes containers#4367 Signed-off-by: Neville Cain <[email protected]>
/retest |
it seems to be a temp issue in
I will retry /retest |
I'm sorry for causing so much churn and confusion: my comments referred to the real spec build, as in the one in fedpkg, not the fake spec in this repo. Since I still can't find anything relevant in the history, I vote to just approve this and then see if koji fails. /retest |
Openstack TripleO gating tests |
I think we're not expecting that to go green yet - @ssbarnea is that right? |
For the record, I think we're good to merge once that's clarified. |
I phrased my question improperly - I should've asked, why are they failing, why is there no actual log (the link is useless), how does a regular user restart or waive that, and where is there documentation on this newly-randomly-added CI test? |
Link is working for me now but page is tl;dr. This SNAFU reads like growing-pains to me, probably just need to wait for clarification. It would be up to the (other) CI system to set the status as ignored instead of failed. There's nothing in github directly that can set a non-native status to other that what was reported. The only option from a github POV is 'X is required for merge' (which is not currently set). |
If you look closely you'll see that link is of the form |
OIC, yes. it could also be that you need to be logged in to that site and/or have permissions see the actual status. FWIW, this behavior is happening on all/many other PRs as well. |
Given this, I'm going to say we see if it merges even with the check red. |
Meaning, the check fails. Looking now, the status-page thing does works on other PRs. Still, seems like growing-pains related issues overall. |
Yes, should be able to. AFAIK that check isn't marked as required in the repo. config. |
thanks all for help and feedback! |
Followup: rawhide build is fine, and so are gating tests. I'm not sure what I was (mis)remembering, but this clearly seems to be working. Thanks for your PR. |
great, thanks for the testing @edsantiago |
Changes I am making:
.gopathok
was listed in.PHONY
which looks wrong as it regenerates.gopathok
every time we re-run it, which was a part of the issuemake install
should not make binaries if already exist #4367. I removed it to avoid that. If.gopathok
is present', makefile should not need to rerun it.podman
tobin/podman
andpodman-remote
tobin/podman-remote
.SOURCES = $(shell find . -name "*.go")
and put it as a dependency of the podman binaries target. It allows us to re-generate the binaries only when there is a change in the source files. The downside is it increases the running time of the command that generates them (20 seconds on my virtual machine running Centos 7). If this is a problem, we could introduce a hidden file that would list all the files to track, that would need to be updated only when a dev is introducing new files.We can now run
make && sudo make install
without error, so if this solution is accepted, I believe it should solve the issue listed here.Closes #4367
Signed-off-by: NevilleC [email protected]