Skip to content

[CI:TOOLING] Fix get_ci_vm test and new git safety checks#356

Merged
cevich merged 1 commit intocontainers:mainfrom
cevich:fix_get_ci_vm_test
May 23, 2024
Merged

[CI:TOOLING] Fix get_ci_vm test and new git safety checks#356
cevich merged 1 commit intocontainers:mainfrom
cevich:fix_get_ci_vm_test

Conversation

@cevich
Copy link
Copy Markdown
Member

@cevich cevich commented May 23, 2024

Previously, likely do to some git update the following error was produced:

Testing: Verify mock 'gcevm' flavor main() workflow produces expected
output
fail - Expected exit-code 0 but received 128 while executing
mock_gcevm_workflow (output follows)
Winning lottery-number checksum: 0
gcloud --configuration=automation_images --project=automation_images
compute instances create --zone=us-central1-a
--image-project=automation_images --image=test-image-name --custom-cpu=0
--custom-memory=0Gb --boot-disk-size=0 --labels=in-use-by=foobar
foobar-test-image-name
gcloud --configuration=automation_images --project=automation_images
compute ssh --ssh-flag=-o=AddKeysToAgent=yes --force-key-file-overwrite
--strict-host-key-checking=no --zone=us-central1-a
root@foobar-test-image-name -- true
Cloning into '/tmp/get_ci_vm_hRxAoX.tmp/var/tmp/automation_images'...
fatal: detected dubious ownership in repository at
'/tmp/cirrus-ci-build/get_ci_vm/good_repo_test/.git'
To add an exception for this directory, call:

  git config --global --add safe.directory
/tmp/cirrus-ci-build/get_ci_vm/good_repo_test/.git
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Fix this.

@cevich cevich force-pushed the fix_get_ci_vm_test branch from fc0274c to f3ad2bb Compare May 23, 2024 18:15
Previously, likely do to some git update the following error was
produced:

```
Testing: Verify mock 'gcevm' flavor main() workflow produces expected
output
fail - Expected exit-code 0 but received 128 while executing
mock_gcevm_workflow (output follows)
Winning lottery-number checksum: 0
gcloud --configuration=automation_images --project=automation_images
compute instances create --zone=us-central1-a
--image-project=automation_images --image=test-image-name --custom-cpu=0
--custom-memory=0Gb --boot-disk-size=0 --labels=in-use-by=foobar
foobar-test-image-name
gcloud --configuration=automation_images --project=automation_images
compute ssh --ssh-flag=-o=AddKeysToAgent=yes --force-key-file-overwrite
--strict-host-key-checking=no --zone=us-central1-a
root@foobar-test-image-name -- true
Cloning into '/tmp/get_ci_vm_hRxAoX.tmp/var/tmp/automation_images'...
fatal: detected dubious ownership in repository at
'/tmp/cirrus-ci-build/get_ci_vm/good_repo_test/.git'
To add an exception for this directory, call:

  git config --global --add safe.directory
/tmp/cirrus-ci-build/get_ci_vm/good_repo_test/.git
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

Fix this.

Signed-off-by: Chris Evich <cevich@redhat.com>
@cevich cevich force-pushed the fix_get_ci_vm_test branch from f3ad2bb to 499c24d Compare May 23, 2024 18:33
@cevich cevich marked this pull request as ready for review May 23, 2024 18:34
@cevich cevich merged commit afe1ced into containers:main May 23, 2024
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