TestUseLumberjack fails on windows

Bug #1454658 reported by Martin Packman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Jesse Meek
1.23
Fix Released
Medium
Jesse Meek
1.24
Fix Released
Critical
Jesse Meek

Bug Description

CI windows unit test job is failing on the 1.24 branch:

<http://reports.vapour.ws/releases/2639/job/run-unit-tests-win2012-amd64/attempt/396>

Just one new test added that breaks:

<http://data.vapour.ws/juju-ci/products/version-2639/run-unit-tests-win2012-amd64/build-396/consoleText>

FAIL: unit_test.go:462: UnitSuite.TestUseLumberjack
...
unit_test.go:479:
    c.Check(l.Filename, gc.Equals, "/var/log/juju/machine-42.log")
... obtained string = "\\var\\log\\juju\\machine-42.log"
... expected string = "/var/log/juju/machine-42.log"

At the least the test needs to be aware of os path differences, and perhaps the actual code should have a better sense of where logs go than /var/log.

Revision history for this message
Martin Packman (gz) wrote :

Test introduced by this pull request:

<https://github.com/juju/juju/pull/2303>

So, also affects 1.23 though we don't run the unit tests against windows on that branch.

Changed in juju-core:
importance: Critical → Undecided
status: Triaged → Invalid
Martin Packman (gz)
no longer affects: juju-core/trunk
Curtis Hovey (sinzui)
tags: added: blocker
Revision history for this message
Curtis Hovey (sinzui) wrote :

The bad revsion was merged into master even though this bug was reported and the CI reported the failure.

Changed in juju-core:
status: Invalid → Triaged
importance: Undecided → Critical
milestone: none → 1.25.0
Revision history for this message
Jesse Meek (waigani) wrote :
Jesse Meek (waigani)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Jesse Meek (waigani)
Jesse Meek (waigani)
Changed in juju-core:
status: In Progress → Fix Committed
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote : Fix Released in juju-core 1.24

Juju-CI verified that this issue is Fix Released in juju-core 1.24:
    http://reports.vapour.ws/releases/2646

Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote : Fix Released in juju-core master

Juju-CI verified that this issue is Fix Released in juju-core master:
    http://reports.vapour.ws/releases/2647

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.