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

create binary, Makefile and basic build/test workflow #72

Merged
merged 5 commits into from
May 27, 2022

Conversation

skriss
Copy link
Contributor

@skriss skriss commented May 25, 2022

Adds the envoy-gateway binary, a Makefile
and a basic GitHub Actions workflow for
running build and test jobs on each PR & push.

Signed-off-by: Steve Kriss krisss@vmware.com

Adds the envoy-gateway binary, a Makefile
and a basic GitHub Actions workflow for
running build and test jobs on each PR & push.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss
Copy link
Contributor Author

skriss commented May 25, 2022

There may be a repo setting related to GH Actions that needs to change to allow actions to run on PRs from forks? I don't have access to change.

@danehans
Copy link
Contributor

@mattklein123 PTAL at #72 (comment). Can you confirm the GH actions repo settings?

Copy link
Contributor

@danehans danehans left a comment

Choose a reason for hiding this comment

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

@skriss thanks for taking the lead on this. I have 1 small nit.

.github/workflows/build_and_test.yaml Outdated Show resolved Hide resolved
@danehans
Copy link
Contributor

xref initial CI env: #63

Signed-off-by: Steve Kriss <krisss@vmware.com>
danehans
danehans previously approved these changes May 25, 2022
Copy link
Contributor

@danehans danehans left a comment

Choose a reason for hiding this comment

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

LGTM

@mattklein123
Copy link
Member

It's set to require approval for first time contributors, but otherwise should run from forks.

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
// by main.
func GetRootCommand() *cobra.Command {
return &cobra.Command{
Use: "envoy-gateway",
Copy link
Contributor

Choose a reason for hiding this comment

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

envoy-gateway is a lot to type, but I can't think of anything better rn,
will the server/daemon CLI (envoy-gateway) be different that the client CLI ( which I envision will be required for debuggability) or will they be subcommands within envoy-gateway (I'd vote for the latter) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, envoy-gateway seemed better than gateway, but it can certainly change to something else if we're not happy with it.

Re: CLI, I'm not sure, I don't think we've discussed that much, but if it's mainly for debugging I think it's fine to use subcommands on the same binary (that's what we do in Contour, FWIW).

Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Signed-off-by: Steve Kriss <krisss@vmware.com>
Copy link
Contributor

@danehans danehans left a comment

Choose a reason for hiding this comment

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

LGTM

.github/workflows/build_and_test.yaml Show resolved Hide resolved
@@ -0,0 +1,33 @@
name: Build and Test
Copy link
Member

@lizan lizan May 26, 2022

Choose a reason for hiding this comment

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

emm, actually this file need to be named build_and_test.yml for GitHub to pick it up.

https://github.community/t/file-extension-yml-vs-yaml/16438

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be fine as-is, it's running correctly on my branch (https://github.com/skriss/gateway/actions/runs/2392566235) as well as on a test PR I created in my fork (https://github.com/skriss/gateway/pull/1/checks). Most of our workflow files in Contour also use the .yaml extension. I'm still not sure why it's not running on this PR, but maybe we can merge & see if it runs on main and on the next PR.

Copy link
Member

Choose a reason for hiding this comment

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

OK let's give it a try as is.

@lizan lizan merged commit c670cb5 into envoyproxy:main May 27, 2022
@alexgervais
Copy link
Contributor

🎉

@skriss skriss deleted the basic-build-test branch May 27, 2022 15:03
@skriss
Copy link
Contributor Author

skriss commented May 27, 2022

All looks good:

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.

6 participants