Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
overlord/hooks: make sure only one hook for given snap is executed at a time. #3235
Merged
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
50a7c0e
Make sure only one hook for given snap is executed at a time.
stolowski 91c5580
Cleanups.
stolowski 96cf5e9
No need to capture err.
stolowski ee8938a
Merge branch 'master' into hookmgr-serialize-tasks
stolowski 2997346
Test for tasks serialization in hook mgr.
stolowski 67947bf
Fix mock handler test.
stolowski 6643f41
Fix panic message in the mock.
stolowski 813cde6
Let's check one more aspect.
stolowski dd31f21
Executed -> Executing.
stolowski 594d5ea
Fix variable name.
stolowski 3425964
Added TestHookTasksForDifferentSnapsRunConcurrently.
stolowski fdaa076
Merge branch 'master' into hookmgr-serialize-tasks
stolowski 3e0ba6b
Don't pass 0 to make(chan..).
stolowski 264f612
Merge branch 'master' into hookmgr-serialize-tasks
stolowski 5a7c613
Added callbacks to MockHandler and test serialize logic via atomics u…
stolowski b7e5bdd
Fix handler test referencing non-existing vars.
stolowski
Jump to file or symbol
Failed to load files and symbols.
because Snap is something that is always set in HookSetup this not an actual problem here but in general because json.Unmarshal updates without resetting target values, doing Get on a reused variable can be risky