intermittent failure in UniterSuite.TestUniterSteadyStateUpgradeRelations: Error: never got expected hooks

Bug #1778986 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Eric Claude Jones

Bug Description

http://ci.jujucharms.com/job/github-merge-juju/638/testReport/github/com_juju_juju_worker_uniter/TestPackage/

FAIL: uniter_test.go:672: UniterSuite.TestUniterSteadyStateUpgradeRelations
...

[LOG] 0:12.257 DEBUG juju.state.presence watcher "deadbeef-0bad-400d-8000-4b1d0d06f00d" decided to prune "presence.beings" and "presence.pings"
[LOG] 0:12.258 DEBUG juju.state.presence pruned "presence.pings" for "deadbeef-0bad-400d-8000-4b1d0d06f00d" of 0 old pings in 682.297µs
[LOG] 0:12.259 DEBUG juju.state.presence pruned "presence.beings" for "deadbeef-0bad-400d-8000-4b1d0d06f00d" of 0 sequence keys (evaluated 0) from 0 keys in 541.62µs
  actual hooks: []string{"install", "leader-elected", "config-changed", "start", "upgrade-charm", "config-changed"}
expected hooks: []string{"install", "leader-elected", "config-changed", "start", "upgrade-charm", "config-changed", "db2-relation-joined mysql/0 db2:0"}
uniter_test.go:673:
    s.runUniterTests(c, []uniterTest{
        ut(
            // This test does an add-relation as quickly as possible
            // after an upgrade-charm, in the hope that the scheduler will
            // deliver the events in the wrong order. The observed
            // behaviour should be the same in either case.
            "ignore unknown relations until upgrade is done",
            quickStart{},
            createCharm{
                revision: 2,
                customize: func(c *gc.C, ctx *context, path string) {
                    renameRelation(c, path, "db", "db2")
                    hpath := filepath.Join(path, "hooks", "db2-relation-joined")
                    ctx.writeHook(c, hpath, true)
                },
            },
            serveCharm{},
            upgradeCharm{revision: 2},
            addRelation{},
            addRelationUnit{},
            waitHooks{"upgrade-charm", "config-changed", "db2-relation-joined mysql/0 db2:0"},
            verifyCharm{revision: 2},
        ),
    })
util_test.go:841:
    c.Fatalf("never got expected hooks")
... Error: never got expected hooks

Revision history for this message
Joseph Phillips (manadart) wrote :

Same message seen in UniterSuite.TestRunCommand:
http://ci.jujucharms.com/job/github-check-merge-juju/1985/console

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
tags: added: unit-tests
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Eric Claude Jones (ecjones)
status: In Progress → Fix Committed
Changed in juju:
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.