You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've run into a problem where when calling the generateReport endpoint, it's storing the results in an older build directory instead of incrementing by 1. For example say we have a reports directory in a project of:
108
109
110
latest
We'd expect the next report to be stored in 111. However it is being stored in 109, for example.
What happened is that we changed the directory where we were storing projects and moved it to a new location. When those directories and report files were moved, it altered the last modified time of the directories.
@fescobar thanks, if we move the directories again we'll do that. We made an assumption that the max build number was fetched and then incremented so it didn't occur to us that it was based on the modified time.
I also encounter the same issue. I try to store report outputs on S3 and sync it to a volatile docker container to generate a new reports version. The issue is that Amazon S3 doesn't preserve modification times and all times are set to the time when I upload previous results to S3.
A simple change with sorting would solve the issue:
Hi @fescobar
We've run into a problem where when calling the generateReport endpoint, it's storing the results in an older build directory instead of incrementing by 1. For example say we have a reports directory in a project of:
We'd expect the next report to be stored in
111
. However it is being stored in109
, for example.What happened is that we changed the directory where we were storing projects and moved it to a new location. When those directories and report files were moved, it altered the last modified time of the directories.
So then when this is called:
allure-docker-service/allure-docker-scripts/generateAllureReport.sh
Line 15 in 351f028
It is not returning
110
but is returning108
which then gets incremented to109
.Is it possible to actually sort the numeric reports instead of relying on the last modified time?
It seems like a workaround for us is to
touch
the most recent directory within each project.The text was updated successfully, but these errors were encountered: