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

Use GitHub Action for building RPM in Fedora Copr #2428

Merged
merged 2 commits into from Jan 31, 2022

Conversation

praiskup
Copy link
Member

And fix the spec file which failed to build.

@praiskup
Copy link
Member Author

COPR_PUSH_WEBHOOK secret needs to be added, with custom webhook (use PACKAGE = postgresql-jdbc):
https://copr.fedorainfracloud.org/coprs/g/pgjdbc/pgjdbc/integrations/
I can gpg-encrypt the webhook, and send it via e-mail.

@davecramer
Copy link
Member

Hi @praiskup sure you can send it to me davecramer@gmail.com

Thanks

@praiskup
Copy link
Member Author

E-mail sent, thanks!

Don't build-depend on system-stubs-jupiter for now, as it is not
packaged into Fedora.
@praiskup praiskup force-pushed the gh-actions-fedora-copr-builds branch from ec94547 to c7cb43f Compare January 31, 2022 08:33
@davecramer
Copy link
Member

@praiskup I noticed some recent pushes. let me know when I can merge this

@praiskup
Copy link
Member Author

If the GH secret is installed (PUSH webhook location), I think we can merge this.
I just fixed small typo in one script name that would fail the build.

@davecramer
Copy link
Member

in the add webhook they ask if you want json encoded or form-url-encoded?

@praiskup
Copy link
Member Author

This needs only adding a GitHub secret named COPR_PUSH_WEBHOOK=<URL>. The action itself creates the JSON request automatically.

@davecramer
Copy link
Member

got it, give me a second

@davecramer
Copy link
Member

done

@praiskup
Copy link
Member Author

Thanks!
Then I think we can merge, and automatically build RPMs again (PUSH hook should build right now, and subsequent PRs should build, too). If not, I'll take a look at fix.

@davecramer davecramer merged commit 858cb17 into pgjdbc:master Jan 31, 2022
@praiskup
Copy link
Member Author

Sorry, @davecramer PUSH doesn't work because I made a mistake — the last
part of the webhook needs to be ../postgresql-jdbc/, not ../pgjdbc/.
Could you please update it once more? Please trim any whitespaces, if copy-pasted.

@davecramer
Copy link
Member

done

@praiskup
Copy link
Member Author

Works! Thank you for the help.
https://copr.fedorainfracloud.org/coprs/g/pgjdbc/pgjdbc/build/3277472/

@davecramer
Copy link
Member

This awesome!

@davecramer
Copy link
Member

@praiskup do we really want to build this for every PR ?

@praiskup
Copy link
Member Author

praiskup commented Feb 1, 2022

It shouldn't be a problem IMO. Is it causing some troubles?

@praiskup
Copy link
Member Author

praiskup commented Feb 1, 2022

Hm, I can see there's e.g. this build failure:
https://download.copr.fedorainfracloud.org/results/@pgjdbc/pgjdbc/fedora-rawhide-x86_64/03288915-postgresql-jdbc/builder-live.log.gz
There's something racy in the test suite probably?

If the run fails, you are free to ignore the error. But before the PR is merged, that's the best chance to fix any potential problems.

@davecramer
Copy link
Member

there are some race conditions that have failures, yes.

My issue with every PR is that it slows down the checks.

@praiskup
Copy link
Member Author

praiskup commented Feb 1, 2022

Can we make the check non-blocking (if it is)? I don't think we always have to wait for the test to pass. Or should there be some trigger button for this to start?

@davecramer
Copy link
Member

Two options. There is an option where an action is initiated by a button, alternatively there should be an action which is initiated by a merge (at least I'd hope so).

@praiskup
Copy link
Member Author

praiskup commented Feb 1, 2022

Yes, I intentionally configured both PR and merges configured both
I'm just afraid that "merge" event in isolation is too late. In most cases, 10 minutes tasks don't play
huge role. And anytime else you can ignore the running task?

@praiskup
Copy link
Member Author

praiskup commented Feb 1, 2022

Of course, if you prefer to merge only events, feel free to drop the pull_request hook. From Copr's perspective (the main task computation is done there), it is OK to handle all the PRs.

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.

None yet

2 participants