DEWR
What is the DEWR
DEWR (Dotcom Escalation Weekly Report) is a project within gitlab.com that generates weekly reports concerning dotcom console escalations.
The source code for it is located here.
How does the DEWR work
ADWR works by utilizing GitLab CI/CD and ruby scripts. It runs in two stages:
- gather
- create
gather stage
This stage runs the ./bin/gather
script, which includes the DEWR lib files and
calls the function DEWR::Gather.run!
. This function makes an API request to
gitlab.com to grab all the issues within the
Support Internal Requests project
that are in either recent or in an open state. It then compiles these issues
into a JSON file, which is stored as an artifact.
create stage
This stage runs the ./bin/create
script, which includes the DEWR lib files and
calls the function DEWR::Create.run!
. This function uses the artifact made in
the gather stage to generate a report (which is an
DEWR issue).
The body of the created issues comes from parsing the issues from the artifact made in the gather stage.
When does the DEWR run
Currently, DEWR runs every Saturday at 0000 UTC.
Change management
Any merge requests made to the corresponding repos produce changes in real time. As such, these are “on demand” style changes and all “scheduling” should occur via the parent issue of the changes themselves.
dc7e3936
)