Intermittent test failure UniterSuite.TestUniterCollectMetrics

Bug #1475271 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Casey Marshall

Bug Description

http://reports.vapour.ws/releases/2884/job/run-unit-tests-win2012-amd64/attempt/899

FAIL: uniter_test.go:1434: UniterSuite.TestUniterCollectMetrics

util_test.go:988:
    c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"", cause:(*os.LinkError)(0xc084599300), previous:(*errors.Err)(0xc084a935f0), file:"github.com/juju/juju/worker/uniter/metrics/metrics.go", line:148} ("link c:\\users\\admini~1\\appdata\\local\\temp\\tmpc4yzfj\\gogo\\tmp-juju-testagiqcb\\check-2674201130786856345\\1\\agents\\unit-u-0\\state\\spool\\metrics\\.6cc9f4fb-4d9c-4344-84fe-6dbbd39a0a75.inc-a14d0d03-361f-4f11-8018-61d4f94979b3 c:\\users\\admini~1\\appdata\\local\\temp\\tmpc4yzfj\\gogo\\tmp-juju-testagiqcb\\check-2674201130786856345\\1\\agents\\unit-u-0\\state\\spool\\metrics\\6cc9f4fb-4d9c-4344-84fe-6dbbd39a0a75: not supported by windows")
... error stack:
 link c:\users\admini~1\appdata\local\temp\tmpc4yzfj\gogo\tmp-juju-testagiqcb\check-2674201130786856345\1\agents\unit-u-0\state\spool\metrics\.6cc9f4fb-4d9c-4344-84fe-6dbbd39a0a75.inc-a14d0d03-361f-4f11-8018-61d4f94979b3 c:\users\admini~1\appdata\local\temp\tmpc4yzfj\gogo\tmp-juju-testagiqcb\check-2674201130786856345\1\agents\unit-u-0\state\spool\metrics\6cc9f4fb-4d9c-4344-84fe-6dbbd39a0a75: not supported by windows
 github.com/juju/juju/worker/uniter/metrics/metrics.go:65:
 github.com/juju/juju/worker/uniter/metrics/metrics.go:148:

Casey Marshall (cmars)
Changed in juju-core:
status: New → Triaged
assignee: nobody → Casey Marshall (cmars)
Revision history for this message
Casey Marshall (cmars) wrote :

os.Link is used for atomically renaming files on Linux. This doesn't work on Windows, will need to add an alternative implementation for that OS.

Changed in juju-core:
importance: Undecided → High
Revision history for this message
Casey Marshall (cmars) wrote :

Will need a non-overwriting file move to land in utils first: http://reviews.vapour.ws/r/2188/

Revision history for this message
Casey Marshall (cmars) wrote :

Ready to land when master is unblocked: https://github.com/juju/juju/pull/2809

Changed in juju-core:
status: Triaged → In Progress
Martin Packman (gz)
Changed in juju-core:
milestone: none → 1.25.0
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.