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

isolate remote zeitgeist functionality/dependencies to separate command/package #547

Closed
wants to merge 3 commits into from

Conversation

liggitt
Copy link
Contributor

@liggitt liggitt commented May 16, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Isolates remote functionality into a subpackage and separate command, so that downstreams relying on the main zeitgeist command to verify local files only don't take dependencies on large numbers of remote libraries (github, gitlab, aws, etc).

My scans of in-project use looked like we only relied on the local dependencies.yaml with no upstreams specified (xref #543 (comment))

Which issue(s) this PR fixes:

xref #543

Best reviewed commit-by-commit

Does this PR introduce a user-facing change?

Functionality requiring access to remote upstreams has moved to the sigs.k8s.io/zeitgeist/remote/zeitgeist command

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels May 16, 2023
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. sig/release Categorizes an issue or PR as relevant to SIG Release. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 16, 2023
@liggitt liggitt changed the title WIP: isolate remote zeitgeist functionality to separate command isolate remote zeitgeist functionality to separate command May 16, 2023
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 16, 2023
@liggitt
Copy link
Contributor Author

liggitt commented May 16, 2023

/assign @justaugustus @saschagrunert

@liggitt liggitt changed the title isolate remote zeitgeist functionality to separate command isolate remote zeitgeist functionality/dependencies to separate command/package May 16, 2023
@saschagrunert
Copy link
Member

/approve

Making the CI work for both binaries would be cool to have.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2023
@liggitt
Copy link
Contributor Author

liggitt commented May 17, 2023

/hold

until release questions are resolved

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2023
@liggitt
Copy link
Contributor Author

liggitt commented May 17, 2023

it makes sense for the artifacts we build/release to contain the remote functionality... I'm not very familiar with the release setup here, so I took a stab at changes in the last commit but those need close review

Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
.goreleaser.yml Show resolved Hide resolved
.ko.yaml Show resolved Hide resolved
@cpanato
Copy link
Member

cpanato commented Jun 5, 2023

will take a look on this tomorrow (06/jun/2023)

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

lgtm

just a small nit

go build -trimpath -ldflags "$(LDFLAGS)" -o ./output/zeitgeist .
# build remote version
go build -trimpath -ldflags "$(LDFLAGS)" -o ./output/zeitgeist ./remote/zeitgeist
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
go build -trimpath -ldflags "$(LDFLAGS)" -o ./output/zeitgeist ./remote/zeitgeist
go build -trimpath -ldflags "$(LDFLAGS)" -o ./output/zeitgeist-remote ./remote/zeitgeist

otherwise it will overwrite the build that is done above

@cpanato
Copy link
Member

cpanato commented Jun 7, 2023

@saschagrunert one question to double check, should we build both binaries and images for the local and remote one? or when we release we just build the full one?

cc @kubernetes-sigs/release-engineering

@saschagrunert
Copy link
Member

should we build both binaries and images for the local and remote one

I think we can only build the full one since it contains all the features.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 10, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cpanato
Copy link
Member

cpanato commented Sep 27, 2023

@liggitt i will take this over to rebase and fix the conflicts if you are okay with that

@liggitt
Copy link
Contributor Author

liggitt commented Sep 27, 2023

@liggitt i will take this over to rebase and fix the conflicts if you are okay with that

sgtm, thanks

@liggitt liggitt closed this Sep 27, 2023
@cpanato cpanato reopened this Feb 20, 2024
@k8s-ci-robot
Copy link
Contributor

@liggitt: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-zeitgeist-test 26e614d link true /test pull-zeitgeist-test
pull-zeitgeist-build 26e614d link true /test pull-zeitgeist-build
pull-zeitgeist-verify 26e614d link true /test pull-zeitgeist-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@cpanato
Copy link
Member

cpanato commented Feb 20, 2024

will close this in favor of #854

@cpanato cpanato closed this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. sig/release Categorizes an issue or PR as relevant to SIG Release. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants