Skip to content

remove community checker code and update trigger targets #11646

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 0 additions & 81 deletions .ci/gcb-community-checker.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .ci/gcb-contributor-membership-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ steps:
entrypoint: "/workspace/.ci/scripts/go-plus/magician/exec.sh"
id: contributor-membership-checker
secretEnv:
["GITHUB_TOKEN_MAGIC_MODULES", "GENERATE_DIFFS_TRIGGER", "COMMUNITY_CHECKER_TRIGGER", "DOWNSTREAM_GENERATION_AND_TEST_TRIGGER"]
["GITHUB_TOKEN_MAGIC_MODULES", "DOWNSTREAM_GENERATION_AND_TEST_TRIGGER"]
timeout: 8000s
args:
- "membership-checker"
Expand All @@ -74,9 +74,5 @@ availableSecrets:
secretManager:
- versionName: projects/673497134629/secrets/github-magician-token-generate-diffs-magic-modules/versions/latest
env: GITHUB_TOKEN_MAGIC_MODULES
- versionName: projects/673497134629/secrets/ci-trigger-generate-diffs/versions/latest
env: GENERATE_DIFFS_TRIGGER
- versionName: projects/673497134629/secrets/ci-trigger-community-checker/versions/latest
env: COMMUNITY_CHECKER_TRIGGER
- versionName: projects/673497134629/secrets/ci-trigger-downstream-generation-and-test/versions/latest
env: DOWNSTREAM_GENERATION_AND_TEST_TRIGGER
61 changes: 0 additions & 61 deletions .ci/magician/cloudbuild/build_trigger.go

This file was deleted.

6 changes: 3 additions & 3 deletions .ci/magician/cloudbuild/community.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
cloudbuildv1 "google.golang.org/api/cloudbuild/v1"
)

func (cb *Client) ApproveCommunityChecker(prNumber, commitSha string) error {
func (cb *Client) ApproveDownstreamGenAndTest(prNumber, commitSha string) error {
buildId, err := getPendingBuildId(PROJECT_ID, commitSha)
if err != nil {
return err
Expand All @@ -42,9 +42,9 @@ func (cb *Client) ApproveCommunityChecker(prNumber, commitSha string) error {
}

func getPendingBuildId(projectId, commitSha string) (string, error) {
COMMUNITY_CHECKER_TRIGGER, ok := os.LookupEnv("COMMUNITY_CHECKER_TRIGGER")
COMMUNITY_CHECKER_TRIGGER, ok := os.LookupEnv("DOWNSTREAM_GENERATION_AND_TEST_TRIGGER")
if !ok {
return "", fmt.Errorf("Did not provide COMMUNITY_CHECKER_TRIGGER environment variable")
return "", fmt.Errorf("Did not provide DOWNSTREAM_GENERATION_AND_TEST_TRIGGER environment variable")
}

ctx := context.Background()
Expand Down
97 changes: 0 additions & 97 deletions .ci/magician/cmd/community_checker.go

This file was deleted.

Loading
Loading