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 bindings failure on PRs #208

Merged
merged 4 commits into from
Apr 21, 2024
Merged

Conversation

CGMossa
Copy link
Member

@CGMossa CGMossa commented Nov 17, 2023

This is not an implementation of #204.

Currently, PRs that change libR-sys cannot pass CI checks.

CI workflow right now: Runs checks + layout-tests. Uploads generated bindings (to other workflows). Then runs tests on precomputed bindings (that aren't "in" at the moment). This fails, because the generated bindings are not the precomputed bindings, the precomputed bindings are the ones from main / master.

Example of PRs that can't pass CI, even if the PR passes tests, are #206 and #205.

What this PR does is add a procedure that would commit the generated bindings, resulting from running CI, when the last commit message contains [generate bindings].

@CGMossa CGMossa marked this pull request as ready for review November 17, 2023 15:09
@CGMossa
Copy link
Member Author

CGMossa commented Nov 17, 2023

I have an issue now that it is running the workflow that pushes the bindings every time anything is run.
image

@CGMossa
Copy link
Member Author

CGMossa commented Nov 19, 2023

This is fixed now, and I've rebased it to remove all the annoying commits.

@CGMossa CGMossa requested review from JosiahParry and Ilia-Kosenkov and removed request for JosiahParry November 19, 2023 13:35
MAINTAINERS_GUIDE.md Outdated Show resolved Hide resolved
CGMossa and others added 4 commits April 20, 2024 17:39
Update maintainer guide

hopefully, a GHA commit shouldn't follow

maybe it needs to be an expression?

what's happening...

please xplain.

right sha..

hopefully, a GHA commit shouldn't follow

hopefully, a GHA commit shouldn't follow

no generating of anything
Co-authored-by: Ilia Kosenkov <ilia.kosenkov@outlook.com>
@CGMossa CGMossa force-pushed the add_generate_bindings_ci_command branch from c305729 to a407f6b Compare April 20, 2024 15:39
@CGMossa CGMossa merged commit 2210257 into master Apr 21, 2024
20 checks passed
@CGMossa CGMossa deleted the add_generate_bindings_ci_command branch April 21, 2024 20:04
CGMossa added a commit that referenced this pull request Apr 21, 2024
* Added `[generate bindings]` command for CI

Update maintainer guide

* Update bindings [skip ci]

* Update MAINTAINERS_GUIDE.md

Co-authored-by: Ilia Kosenkov <ilia.kosenkov@outlook.com>

---------

Co-authored-by: CGMossa <CGMossa@users.noreply.github.com>
Co-authored-by: Ilia Kosenkov <ilia.kosenkov@outlook.com>
CGMossa added a commit that referenced this pull request Apr 21, 2024
* Added `[generate bindings]` command for CI

Update maintainer guide

* Update bindings [skip ci]

* Update MAINTAINERS_GUIDE.md

Co-authored-by: Ilia Kosenkov <ilia.kosenkov@outlook.com>

---------

Co-authored-by: CGMossa <CGMossa@users.noreply.github.com>
Co-authored-by: Ilia Kosenkov <ilia.kosenkov@outlook.com>
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.

4 participants