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

[cached resolve] The test failed on Windows #5339

Merged
merged 1 commit into from Aug 17, 2022
Merged

Conversation

pkriens
Copy link
Member

@pkriens pkriens commented Aug 17, 2022

I think this was caused by faster window machines.
The reason for the operation was USE_CACHE which
can only happen if the bndrun file did not pick up
the time of the included file.

I've added a 100 ms delay before taking a time,
this 100 ms should be more than the resolution of
the file system.

So setting the time on the included file was not
seen as later than the project file.

I also added checks to see what the cache reason is
before we call getRunBundles().

Lets see what happens

Signed-off-by: Peter Kriens Peter.Kriens@aqute.biz

I think this was caused by faster window machines.
The reason for the operation was USE_CACHE which
can only happen if the bndrun file did not pick up
the time of the included file.

I've added a 100 ms delay before taking a time,
this 100 ms should be more than the resolution of
the file system.

So setting the time on the included file was not
seen as later than the project file.

I also added checks to see what the cache reason is
before we call getRunBundles().

Lets see what happens

Signed-off-by: Peter Kriens <Peter.Kriens@aqute.biz>
@pkriens pkriens merged commit b133d60 into bndtools:master Aug 17, 2022
11 checks passed
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.

None yet

1 participant