Instantly share code, notes, and snippets.


Start up with user having a running Server:

time="2018-09-11T18:26:25+02:00" level=info msg="UserIdler created." component=user-idler id=xxxxxx-a31f-471c-a3e7-9402c086d1be username=xxxxxxx 
time="2018-09-11T18:26:25+02:00" level=info msg="UserIdler started." checkIdle=5m component=user-idler id=xxxxxx-a31f-471c-a3e7-9402c086d1be maxRetriesQuietInterval=5m username=xxxxxxx 
time="2018-09-11T18:26:25+02:00" level=info msg="Will send user xxxxxxx to idler due to done build" 
time="2018-09-11T18:26:25+02:00" level=info msg="Sending user xxxxxxx to idler from a Build event" 
time="2018-09-11T18:26:26+02:00" level=info msg="Will send user xxxxxxx to idler due to a new version of DC or an existing version is coming up" 
time="2018-09-11T18:26:26+02:00" level=info msg="Sending user xxxxxxx to idler from a Deployment Config event" 
time="2018-09-11T18:26:26+02:00" level=info msg="About to idle jenkins, Reason: DoneBuild BuildName:cuckoo-1 Last:2018-07-20 05:05:22 +0000 UTC" attempt="(1/5)" component=user-idler id
View 1.adoc

The incident report is intended as a write up for transparency, cross-team knowledge transfer and to get in the habit of thinking in terms of continues improvement.

An Incident report should be created for each OSiO outage(small or large) in GitHub with label "type/incident":

Note: this is a public report so de sensitise data. No tokens, no users, no internal links etc

View generator_test.go
package wit
import (
View cache.go
package middlewares
import (
type Cache struct {
mux sync.Mutex
m map[string]Promise
View design.go
// Definition
func test() {
account := app.AccountSingle{}
View tst.go
db := requires.Resource(t, Database)
space, wis := requires.Objects(t, Space(1), WorkItems(3, ExtraLongTitle()))
func ExtraLongTitle()  {
return func(wi *WorkItem) {
wi.Data.Attributes["system.title"] = ".. long thing.."
View workitem.create.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>New Work Item Created</title>
View jenkins.log
INFO: Bouncy Castle security provider initialized.
Jul 09, 2017 8:37:10 PM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin Pipeline: Declarative Extension Points API v1.1.8 (pipeline-model-extensions) Pipeline: Declarative Extension Points API v1.1.8 failed to load.
- Pipeline: Groovy v2.27 is older than required. To fix, install v2.33 or later.
- Pipeline: Job v2.10 is older than required. To fix, install v2.11 or later.
- Pipeline: Model API v1.1.1 is older than required. To fix, install v1.1.8 or later.
at hudson.PluginWrapper.resolvePluginDependencies(
at hudson.PluginManager$2$1$
at org.jvnet.hudson.reactor.TaskGraphBuilder$
View workitemtypes.go
// Show runs the show action.
func (c *WorkitemtypeController) Show(ctx *app.ShowWorkitemtypeContext) error {
var err error
var result *app.WorkItemTypeSingle
err = application.Transactional(c.db, func(appl application.Application) error {
result, err = appl.WorkItemTypes().Load(ctx.Context, ctx.WitID)
if err != nil {
return jsonapi.JSONErrorResponse(ctx, err)
View iteration_test.go
package controller_test
import (
. ""
testsupport ""