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

Migrate CI to use swiftlang / SwiftNIO common GitHub Actions. #2105

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

rnro
Copy link
Collaborator

@rnro rnro commented Nov 5, 2024

Motivation:

  • Reduce duplication
  • Centralise boilerplate changes when new Swift versions are picked up.
  • Benefit from centralised work to add new linting / test infrastructure.

Modifications:

Changes of note:

  • Use soundness checks from swiftlang/github-workflows.
  • Define a gRPC-specific soundness check which retains bespoke license-checking code for .swift files as the gRPC header style is very different to most templates and checks that generated code is up-to-date.

Result:

More test, linting, formatting coverage. More common CI with other Swift on Server projects.

@rnro rnro added the 🆕 semver/minor Adds new public API. label Nov 5, 2024
@rnro rnro requested a review from glbrntt November 5, 2024 15:34
@rnro rnro force-pushed the adopt_standardized_github_actions branch 2 times, most recently from 3f145d1 to 1dcf6af Compare November 5, 2024 15:52
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Thanks @rnro -- couple of small things to fix beyond what we already discussed.

CONTRIBUTING.md Outdated Show resolved Hide resolved
@@ -1,4 +1,4 @@
// Copyright 2015 gRPC authors.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure what's happened here, but this is meant to be a symlink from Examples/hello-world/Protos/HelloWorld.proto to dev/protos/upstream/grpc/examples/helloworld.proto. Could you fix it?

@rnro rnro force-pushed the adopt_standardized_github_actions branch 3 times, most recently from 412a7bf to c105ec9 Compare November 5, 2024 16:53
@rnro rnro requested a review from glbrntt November 5, 2024 16:53
@rnro rnro force-pushed the adopt_standardized_github_actions branch 3 times, most recently from a32ccaf to 6bfd485 Compare November 5, 2024 17:03
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

We're missing the integration tests script but this looks good otherwise

.github/workflows/main.yml Outdated Show resolved Hide resolved
@rnro rnro force-pushed the adopt_standardized_github_actions branch 2 times, most recently from 5ffed88 to 09f2243 Compare November 6, 2024 16:27
Motivation:

* Reduce duplication
* Centralise boilerplate changes when new Swift versions are picked up.
* Benefit from centralised work to add new linting / test
  infrastructure.

Modifications:

Changes of note:
* Use soundness checks from swiftlang/github-workflows.
* Define a gRPC-specific soundness check which retains bespoke license-checking
code for .swift files as the gRPC header style is very different to most templates
and checks that generated code is up-to-date.

Result:

More test, linting, formatting coverage. More common CI with other Swift
on Server projects.
@rnro rnro force-pushed the adopt_standardized_github_actions branch from 09f2243 to 4608314 Compare November 6, 2024 16:34
@rnro rnro requested a review from glbrntt November 7, 2024 08:36
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Fab, thanks @rnro!

@glbrntt glbrntt merged commit 07e38e9 into main Nov 7, 2024
41 of 45 checks passed
@glbrntt glbrntt deleted the adopt_standardized_github_actions branch November 7, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants