Skip to content

Commit

Permalink
remove community checker code and update trigger targets (GoogleCloud…
Browse files Browse the repository at this point in the history
…Platform#11646)

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
  • Loading branch information
2 people authored and abd-goog committed Sep 23, 2024
1 parent f8f326f commit 5319f48
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 386 deletions.
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

0 comments on commit 5319f48

Please sign in to comment.