forked from bufbuild/protoc-gen-validate
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Next.mk #2
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
Draft
dio
wants to merge
12
commits into
main
Choose a base branch
from
makefile-proposal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add Next.mk #2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
03cb0b5
to
fc2f614
Compare
This proposes a new Makefile. Currently, it resides in Next.mk. To invoke a target inside it, run it with `make -f Next.mk`. The Next.mk has several targets, that can be inspected via the help target. ``` $ make -f Next.mk help protoc-gen-validate build Build the plugin clean Clean all build and test artifacts check Verify contents of last commit help Describe how to use each target ``` Next.mk depends on several *.mk files: - Tools.mk provides dependency tools versions. - tools/build/Help.mk provides the "help" target. - tools/build/Env.mk sets some required env vars. - tools/build/Installer.mk provides targets that install tools. This patch moves BUILD to BUILD.bazel hence "build" directory can be used to store the current plugin binary. This patch also adds a new workflow: .github/workflows/commit.yaml To run "build" and "check". The build step runs clean before build hence the *.pb.go is regenerated and its consistency can be checked via `make check`. Signed-off-by: Dhi Aurrahman <[email protected]>
064b0d2
to
0b899f4
Compare
This adds the test target to run the required tests. The test target can be invoked via: `make -f Next.mk test`. This target runs test via bazel. The bazel command is provided via bazelisk so we can pick up the right bazel version (hint: .bazelversion). Before running the test, we generate the required *.go files via tests_harness_cases_go (which is a dependency of test target). This patch adds test target invocation in the workflow, also sets up the corresponding caching mechanism for bazel. Signed-off-by: Dhi Aurrahman <[email protected]>
27cbbd4
to
6295a15
Compare
This runs bazel-related checks. Signed-off-by: Dhi Aurrahman <[email protected]>
before -rwxr-x--- 1 alyssar primarygroup 23338512 Nov 21 17:00 bazel-bin/test/performance/test_binary_size_stripped -rwxr-x--- 1 alyssar primarygroup 23M Nov 21 17:00 bazel-bin/test/performance/test_binary_size_stripped after -rwxr-x--- 1 alyssar primarygroup 19642512 Nov 21 17:04 bazel-bin/test/performance/test_binary_size_stripped -rwxr-x--- 1 alyssar primarygroup 19M Nov 21 17:04 bazel-bin/test/performance/test_binary_size_stripped Proof of concept use here: envoyproxy/envoy#24151 which is passing all Envoy Mobile CI (its failing Envoy CI because of the dependency check which is expected and irrelevant)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Elliot Jackson <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Elliot Jackson <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Elliot Jackson <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…d#747) #patch Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ild#748) #patch Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP
Signed-off-by: Dhi Aurrahman [email protected]