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

local task test sometimes appear to use the same workspace over and over #467

Open
henrjk opened this issue Mar 15, 2022 · 0 comments
Open
Labels
area/testing Testing of ODS Pipeline itself bug Something isn't working

Comments

@henrjk
Copy link
Member

henrjk commented Mar 15, 2022

When I run tasks tests like so:

go test -run TestTaskODSBuildTypescript/build_backend_typescript_app$ github.com/opendevstack/pipeline/test/tasks -v -timeout 60m
=== RUN   TestTaskODSBuildTypescript
    check.go:42: Trying to reach the required services...
    check.go:49: Nexus reached successfully.
    check.go:49: SonarQube reached successfully.
2022/03/15 08:24:30 Create namespace oxliildr to deploy to
2022/03/15 08:24:30 Create persistent volume oxliildr

I frequently get that the same namespace is generated in the example above oxliildr and as a consequence it appears the tests do reuse the prior logs and appears to pass. I am not quite sure what is causing this, but it appears perhaps the PseudoString is not actually random. I also tried to follow the suggestion at https://stackoverflow.com/a/54491783. At least for me the problem appears to go away but it did not make a difference.

For temporary workspaces make clear-tmp-workspaces appears to resolve the issue as well.

@michaelsauter michaelsauter added the bug Something isn't working label Mar 15, 2022
@michaelsauter michaelsauter added this to the 0.3.0 milestone Mar 15, 2022
@michaelsauter michaelsauter removed this from the 0.3.0 milestone Mar 31, 2022
@michaelsauter michaelsauter added the area/testing Testing of ODS Pipeline itself label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Testing of ODS Pipeline itself bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants