-
Bug
-
Resolution: Cannot Reproduce
-
Low
-
None
-
6.1.1, 6.4.1
-
3
-
Severity 3 - Minor
-
Summary
calling file.lastUpdated() on my machine provides you with a time stamp to the nearest second (and seems to always round down). This means that if your build is really fast, the files look like they were updated before the tasks started and therefore Bamboo will not parse them for tests.
There are also file systems which only store the lastUpdated timestamps to the nearest 2 second.
We should probably provide some sort of leniency here.
Solution
Bamboo uses system property bamboo.fs.timestamp.precision to define FS timestamp resolution. By default it is set to 100 (ms), please set it to higher value in order to make file date check less strict. Bamboo does the check in the following way:
private boolean isFileRecentEnough(final File file) { return file.lastModified() >= (taskStartDate.getTime() - SystemProperty.FS_TIMESTAMP_RESOLUTION_MS.getTypedValue()); }
[BAM-12979] Test file date check not forgiving enough
Remote Link | Original: This issue links to "Page (Atlassian Documentation)" [ 104673 ] |
Assignee | New: Giovanna Fragoso [ a3e6629b6e9d ] |
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 1443747 ] | New: JAC Bug Workflow v3 [ 3386032 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Cannot Reproduce [ 5 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Resolved [ 5 ] |
Support reference count | New: 3 |
Affects Version/s | New: 6.4.1 [ 78590 ] | |
Affects Version/s | New: 6.1.1 [ 73029 ] |
Fix Version/s | Original: 5.10.1.1 [ 61404 ] |
Resolution | Original: Done [ 17 ] | |
Status | Original: Resolved [ 5 ] | New: Needs Triage [ 10030 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |