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

report.html is created at the start of pytest run instead of after in v4 #796

Open
thenu97 opened this issue Jan 24, 2024 · 2 comments
Open

Comments

@thenu97
Copy link

thenu97 commented Jan 24, 2024

We run two containers in one pod. One container runs a bash script that checks the existence of the report.html then shuts the pods down after uploading the html file to azure blob storage. The second container runs the pytest command.

Due to the change in report.html being created at the start of the pytest run now, it no longer waits for the test on the second container to finish. It uploads the unfinished version of the report instead.

As this is a breaking change, could you please make a note of this in the release notes or maybe fix this by making a temporary file in /tmp then move it to the report directory at the end of the test

Part of the script:

while [ ! -f /tmp/report.html ]; do
    sleep 2
done
@BeyondEvil
Copy link
Contributor

BeyondEvil commented Feb 2, 2024

Can you try using the master branch?

That was fixed in: #754

And released in 4.1.0.

@Mmajonez
Copy link

Mmajonez commented Mar 4, 2024

@BeyondEvil are you sure it was fixed correctly? I updated to 4.1.1 and report file is still generated at the beginning but isn't updated until the end
image

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

No branches or pull requests

3 participants