Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Unit test failure in providers #4554

Open
rajathagasthya opened this issue Apr 6, 2023 · 0 comments
Open

Unit test failure in providers #4554

rajathagasthya opened this issue Apr 6, 2023 · 0 comments
Labels
area/testing kind/bug PR/Issue related to a bug severity-1 Indicates an issue or PR is critical urgent

Comments

@rajathagasthya
Copy link
Member

Bug description

Unit tests are failing in providers and blocking merge of several PRs.

2023-04-06T15:55:10.2192338Z ## Test the YTT cluster templates
2023-04-06T15:55:10.2223501Z echo "Changing into the provider test directory to verify ytt cluster templates..."
2023-04-06T15:55:10.2255593Z Changing into the provider test directory to verify ytt cluster templates...
2023-04-06T15:55:10.2258302Z cd ./providers/tests/unit && PATH=/home/runner/work/tanzu-framework/tanzu-framework/hack/tools/bin:"/home/runner/go/bin:/opt/hostedtoolcache/go/1.18.10/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" go test -coverprofile coverage1.txt -v -timeout 120s ./
2023-04-06T15:55:47.8032483Z === RUN   TestUnit
2023-04-06T15:55:47.8524368Z Running Suite: Ytt Rendering Unit Test Suite
2023-04-06T15:55:47.8524798Z ============================================
2023-04-06T15:55:47.8525342Z Random Seed: [1m1680796547[0m
2023-04-06T15:55:47.8525720Z Will run [1m106[0m of [1m106[0m specs
2023-04-06T15:55:47.8525903Z 
2023-04-06T15:56:51.3266077Z [90m------------------------------[0m
2023-04-06T15:56:51.3267010Z [32m• [SLOW TEST:7.657 seconds][0m
2023-04-06T15:56:51.3267489Z PCI Passthrough
2023-04-06T15:56:51.3268644Z [90m/home/runner/work/tanzu-framework/tanzu-framework/providers/tests/unit/pci_passthrough_test.go:18[0m
2023-04-06T15:56:51.3269121Z   when WORKER_ROLLOUT_STRATEGY is set
2023-04-06T15:56:51.3315452Z   [90m/home/runner/work/tanzu-framework/tanzu-framework/providers/tests/unit/pci_passthrough_test.go:153[0m
2023-04-06T15:56:51.3316051Z     should set MachineDeployment strategy type to correct value
2023-04-06T15:56:51.3316844Z     [90m/home/runner/work/tanzu-framework/tanzu-framework/providers/tests/unit/pci_passthrough_test.go:165[0m
2023-04-06T15:56:51.3317376Z [90m------------------------------[0m
2023-04-06T15:57:47.8153612Z panic: test timed out after 2m0s

See runs https://github.com/vmware-tanzu/tanzu-framework/actions/runs/4629851596/jobs/8192578910?pr=4549 and https://github.com/vmware-tanzu/tanzu-framework/actions/runs/4631825597/jobs/8195154375?pr=4552 for logs.

Affected product area (please put an X in all that apply)

  • ( ) APIs
  • ( ) Addons
  • ( ) CLI
  • ( ) Docs
  • ( ) IAM
  • ( ) Installation
  • ( ) Plugin
  • ( ) Security
  • (x) Test and Release
  • ( ) User Experience
  • ( ) Developer Experience

Expected behavior

make test should succeed.

Steps to reproduce the bug

Run make test and see the failure mentioned above.

Version (include the SHA if the version is not obvious)

Environment where the bug was observed (cloud, OS, etc)

Relevant Debug Output (Logs, manifests, etc)

@rajathagasthya rajathagasthya added area/testing kind/bug PR/Issue related to a bug severity-1 Indicates an issue or PR is critical urgent labels Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/testing kind/bug PR/Issue related to a bug severity-1 Indicates an issue or PR is critical urgent
Projects
None yet
Development

No branches or pull requests

1 participant