Deployments/Calendar

From Wikitech

The deployment calendar page is generated weekly by a script that lives in the repos/releng/release repo called makedeploymentcaledar.py.

Example Usage

Week with a train with an EU primary conductor and an American secondary conductor

$ ./make-deployment-calendar/deployments-calendar --schedule=European+American train --old 1.35.0-wmf.31 --new 1.35.0-wmf.32 --deployer='{{ircnick|hashar|Antoine}}, {{ircnick|twentyafterfour|Mukunda}}' --blocker-task=T249964

Week with a train with an American primary conductor and an EU secondary conductor

$ ./make-deployment-calendar/deployments-calendar --schedule=American+European train --old 1.35.0-wmf.30 --new 1.35.0-wmf.31 --deployer='{{ircnick|brennen|Brennen}}, {{ircnick|hashar|Antoine}}' --blocker-task=T249963

Week with a train with an American primary conductor and an American secondary conductor

$ ./make-deployment-calendar/deployments-calendar --schedule=American+European train --old 1.35.0-wmf.30 --new 1.35.0-wmf.31 --deployer='{{ircnick|brennen|Brennen}}, {{ircnick|hashar|Antoine}}' --blocker-task=T249963

Week without a train

$ ./make-deployment-calendar/deployments-calendar --schedule=NoTrain

Week American primary train conductor and American secondary conductor

$ ./make-deployment-calendar/deployments-calendar --schedule=American train --old 1.35.0-wmf.26 --new 1.35.0-wmf.27 --deployer='{{ircnick|longma|Jeena}}, {{ircnick|James_F|James}}' --blocker-task=T247774

Generate a week that is not the next week

$ ./make-deployment-calendar/deployments-calendar --start-date 2020-05-18 --schedule=NoTrain

Schedules

  • NoTrain
  • American
  • European
  • American+European
  • European+American

Full Usage

usage: deployments-calendar [-h] [-c CONFIG_FILE] [-m MESSAGE] [--schedule SCHEDULES] [--start-date START_DATE] {train} ...

deployments-calendar
====================

Render the Deployments calendar for Wikitech

Example usage for weeks where there is a train:

    ./deployments-calendar \
        train \
          --old 1.34.0-wmf.18 \
          --new 1.34.0-wmf.19 \
          --deployer '{{ircnick|thcipriani}}' \
          --blocker-task T220744 \
          --schedule American

Always generates the schedule starting *next monday* -- you can pass a
more explicit start date the schedule will pickup the next monday:

    ./deployments-calendar --start-date 2019-05-01

positional arguments:
  {train}

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        config json file
  -m MESSAGE, --message MESSAGE
                        Messages to print at the top of the week. Can be passed multiple times.
  --schedule SCHEDULES  Active alternate schedules (e.g., American)
  --start-date START_DATE
                        Alternative start date for calendar, defaults to next Monday