Skip to content

Commit

Permalink
Merge branch 'main' into dc-terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnarayanan authored Dec 13, 2024
2 parents 24c628c + d7d5bdf commit a08aaa0
Show file tree
Hide file tree
Showing 845 changed files with 14,092 additions and 7,422 deletions.
2 changes: 1 addition & 1 deletion .ci/containers/build-environment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH"
WORKDIR $GOPATH

# terraform binary used by tfv/tgc
COPY --from=hashicorp/terraform:1.8.3 /bin/terraform /bin/terraform
COPY --from=hashicorp/terraform:1.10.0 /bin/terraform /bin/terraform

SHELL ["/bin/bash", "-c"]

Expand Down
6 changes: 3 additions & 3 deletions .ci/containers/go-plus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN wget https://releases.hashicorp.com/terraform/1.8.3/terraform_1.8.3_linux_amd64.zip \
&& unzip terraform_1.8.3_linux_amd64.zip \
&& rm terraform_1.8.3_linux_amd64.zip \
RUN wget https://releases.hashicorp.com/terraform/1.10.0/terraform_1.10.0_linux_amd64.zip \
&& unzip terraform_1.10.0_linux_amd64.zip \
&& rm terraform_1.10.0_linux_amd64.zip \
&& mv ./terraform /bin/terraform
330 changes: 0 additions & 330 deletions .ci/gcb-generate-diffs-new.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .ci/gcb-pr-downstream-generation-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ steps:
- COMMIT_SHA=$COMMIT_SHA

# Long timeout to enable waiting on VCR test
timeout: 20000s
timeout: 64800s
options:
machineType: 'N1_HIGHCPU_32'

Expand Down
15 changes: 9 additions & 6 deletions .ci/magician/cmd/generate_downstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,15 @@ func createCommit(scratchRepo *source.Repo, commitMessage string, rnr ExecRunner
commitSha = strings.TrimSpace(commitSha)
fmt.Printf("Commit sha on the branch is: `%s`\n", commitSha)

variablePath := fmt.Sprintf("/workspace/commitSHA_modular-magician_%s.txt", scratchRepo.Name)
fmt.Println("variablePath: ", variablePath)

err = rnr.WriteFile(variablePath, commitSha)
if err != nil {
fmt.Println("Error:", err)
// auto-pr's use commitSHA_modular-magician_<repo>_.txt file to communicate commmit hash
// across cloudbuild steps. Used in test-tpg to execute unit tests for the HEAD commit
if strings.HasPrefix(scratchRepo.Branch, "auto-pr-") && !strings.HasSuffix(scratchRepo.Branch, "-old") {
variablePath := fmt.Sprintf("/workspace/commitSHA_modular-magician_%s.txt", scratchRepo.Name)
fmt.Println("variablePath: ", variablePath)
err = rnr.WriteFile(variablePath, commitSha)
if err != nil {
fmt.Println("Error:", err)
}
}

return commitSha, err
Expand Down
1 change: 1 addition & 0 deletions .ci/magician/cmd/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type ExecRunner interface {
RemoveAll(path string) error
PushDir(path string) error
PopDir() error
ReadFile(name string) (string, error)
WriteFile(name, data string) error
AppendFile(name, data string) error // Not used (yet).
Run(name string, args []string, env map[string]string) (string, error)
Expand Down
Loading

0 comments on commit a08aaa0

Please sign in to comment.