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

test: behaviors-unlock_on_close (2024-05-28 22:58:58.932919+00:00) #2478

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kneeyo1
Copy link
Collaborator

@kneeyo1 kneeyo1 commented May 28, 2024

No description provided.

Copy link

Terraform Plan

TACOS generated a terraform plan for 3 slices:

  • 1 slices failed to plan
  • 2 slices have pending changes to apply

Errors

terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm

error: failed to push some refs to 'https://github.com/getsentry/tacos-gha.demo'
Commands: (error code 1)

$ cd terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm
direnv: loading $repo/.envrc
direnv: export +GETSENTRY_SAC_DEPLOY_ENVIRON +REPO_TOP
direnv: loading $repo/tacos-gha/.envrc
direnv: export ~PATH ~PS1_PREFIX ~PYTHONPATH

$ env GETSENTRY_SAC_VERB=state-admin sudo-gcp tf-lock-acquire
You are authenticated for the next hour as: [email protected]
tf-lock-acquire: success: .([email protected])

$ pwd
$slice

$ echo tf root module: terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm
tf root module: terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm
diff --git a/terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm/.config/tf-lock-info/Path b/terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm/.config/tf-lock-info/Path
new file mode 100644
index 0000000..25a8263
--- /dev/null
+++ b/terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm/.config/tf-lock-info/Path
@@ -0,0 +1 @@
+gs://sac-dev-tf--tacos-gha/tacos-demo/env.neohuang/behaviors-unlock_on_close/slice-2-vm/default.tflock
\ No newline at end of file

$ git fetch origin --depth=1 test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close
From https://github.com/getsentry/tacos-gha.demo
 * branch            test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close -> FETCH_HEAD
 * [new branch]      test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close -> origin/test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close

$ git checkout test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close
Previous HEAD position was f901636 Merge 64d0691ceac93f85753b1e01ab7b04d7327183e8 into ef42fcb749f04eb872323c9bb1812a0626f3e556
Switched to a new branch 'test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close'
A	terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm/.config/tf-lock-info/Path
M	terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm/.terraform.lock.hcl
branch 'test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close' set up to track 'origin/test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close'.

$ git rev-parse HEAD

$ graft=1f8b42cbdc14b8676aad4062fb89e99192f1493b

$ git add -u .

$ git status
On branch test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close
Your branch is up to date with 'origin/test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	new file:   .config/tf-lock-info/Path
	modified:   .terraform.lock.hcl

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	../../../../.prompt-color
	../../../../console.log
	../../../../orig.env
	../../../../tacos-gha/
	../../../../tf-log.hcl


$ git commit -m 'updating tf-lock cache: terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm'
[test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close 30e1a8a] updating tf-lock cache: terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm
 2 files changed, 3 insertions(+)
 create mode 100644 terraform/env.neohuang/behaviors-unlock_on_close/slice-2-vm/.config/tf-lock-info/Path

$ git push
To https://github.com/getsentry/tacos-gha.demo
 ! [rejected]        test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close -> test/neohuang/2024-05-28T22_58_58.932919+00_00/behaviors-unlock_on_close (fetch first)
error: failed to push some refs to 'https://github.com/getsentry/tacos-gha.demo'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
failed! trying again after 3 seconds...
$repo/tacos-gha/lib/tacos/plan: line 29: graft: unbound variable

Changes

terraform/env.neohuang/behaviors-unlock_on_close/slice-0-project

Plan: 1 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # null_resource.edit-me will be created
  + resource "null_resource" "edit-me" {
      + id       = (known after apply)
      + triggers = {
          + "now" = "2024-05-28 22:59:55.625944+00:00"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to:
tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "tfplan"

terraform/env.neohuang/behaviors-unlock_on_close/slice-1-iam

Plan: 1 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # null_resource.edit-me will be created
  + resource "null_resource" "edit-me" {
      + id       = (known after apply)
      + triggers = {
          + "now" = "2024-05-28 22:59:55.653564+00:00"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to:
tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "tfplan"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant