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

Complete rework of our CI #72

Merged

Conversation

AnotherDaniel
Copy link
Contributor

@AnotherDaniel AnotherDaniel commented Mar 28, 2024

This is to address #51, and will be a multi-stage PR (a few individual commits with change sets building up the whole picture).

Step 1 - enable cargo-deny, adding deny.toml, and changing a build.rs dep for avoid strange licensed crates in our dep tree

Step 2 - remove Cargo.lock from our .gitignore and add a couple of template files to enable cargo-about

Step 3 - introduce the all-new github workflows

target: x86_64-unknown-linux-gnu
- name: linux-arm64
runner: ubuntu-latest
target: aarch64-unknown-linux-gnu
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Was about to ask for this yesterday on the issue, but you beat me to the punch 🙂

@PLeVasseur
Copy link
Contributor

PLeVasseur commented Mar 28, 2024

Hey @AnotherDaniel -- opened an issue for adding cross-compiling to the CI/CD: #73

Do you think we should tackle that as a part of this PR or a new one after this one merges?

@AnotherDaniel
Copy link
Contributor Author

AnotherDaniel commented Mar 28, 2024

This workspace setup with locked-in required workflows is driving me up the wall in this context here. Who has admin rights to this repo and can just fix this? Should be related to this feature: https://github.blog/2023-01-10-introducing-required-workflows-and-configuration-variables-to-github-actions/

@PLeVasseur
Copy link
Contributor

PLeVasseur commented Mar 28, 2024

Who has admin rights to this repo and can just fix this? Should be related to this feature: https://github.blog/2023-01-10-introducing-required-workflows-and-configuration-variables-to-github-actions/

I dunno if committers get admin rights. If so => @sophokles73, if not => @stevenhartley

@stevenhartley
Copy link

Who has admin rights to this repo and can just fix this? Should be related to this feature: https://github.blog/2023-01-10-introducing-required-workflows-and-configuration-variables-to-github-actions/

I dunno if committers get admin rights. If so => @sophokles73, if not => @stevenhartley

Hi @AnotherDaniel , that is me and I think anyone else. We use branch protection rules that require certain workflows to be successful to run. These rules are turned on/off using otterdog in the https://github.com/eclipse-uprotocol/.eclipsefdn project. As you can see in https://github.com/eclipse-uprotocol/.eclipsefdn/blob/main/otterdog/eclipse-uprotocol.jsonnet#L355 we require three workflows to be successful so if you change the names of the workflows (or delete them), the branch protection rules will fail. We can temporarily turn them off, fix the workflows, then turn them back on if you like? It is a 10 min change for me, let me know if you want me to do that for your project. You can also fork this project, make the change, then create a PR to merge it back in.

@AnotherDaniel
Copy link
Contributor Author

AnotherDaniel commented Mar 28, 2024

@stevenhartley then I think the path forward would be to turn off these rules, merge this PR and turn the new ones on again?

Would work for me, I can't do any of these things but would pick things up once these workflows are active.
I can do the otterdog change for you to copy-paste, but earliest tomorrow...

@stevenhartley
Copy link

Change is pending, once merge you only have to retrigger the change by pushing something (black space or something): eclipse-uprotocol/.eclipsefdn#46

@stevenhartley
Copy link

@AnotherDaniel it is all passing and looking great, please let me know if it is ready to merge or if you would like others to chime in as well.

@AnotherDaniel
Copy link
Contributor Author

AnotherDaniel commented Mar 28, 2024

I think this can be merged - already did a review with @sophokles73 earlier today, and incorporated feedback. In any case this is an improvement to what we had before. More goodness can surely be added, but in subsequent PRs...

Copy link
Contributor

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Impressive stuff! Thanks @AnotherDaniel 🙂

I must admit, I am not as knowledgeable as you on the CI, but this looks comprehensive

deny.toml Show resolved Hide resolved
about.hbs Outdated Show resolved Hide resolved
about.toml Outdated Show resolved Hide resolved
.github/workflows/README.md Outdated Show resolved Hide resolved
.github/workflows/README.md Outdated Show resolved Hide resolved
.github/workflows/nightly.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/release.yaml Outdated Show resolved Hide resolved
.github/workflows/test-featurematrix.yaml Outdated Show resolved Hide resolved
.github/workflows/x-build.yaml Outdated Show resolved Hide resolved
@AnotherDaniel
Copy link
Contributor Author

All review comments implemented

Copy link
Contributor

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

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

LGTM

@sophokles73
Copy link
Contributor

@AnotherDaniel do you want to squash again or shall I merge the PR as is?

@AnotherDaniel
Copy link
Contributor Author

Ah, merge it as is - commit history is reasonably clear I'd say.

@sophokles73 sophokles73 merged commit e4a0fc0 into eclipse-uprotocol:main Apr 2, 2024
10 checks passed
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