cal-itp / reports

GTFS data quality reports for California transit providers
https://reports.calitp.org
GNU Affero General Public License v3.0
7 stars 0 forks source link

Release February Reports #89

Closed Nkdiaz closed 2 years ago

Nkdiaz commented 2 years ago

Checklist for monthly report generation

Process should begin on the first of the month and reports emailed out no later than 2 weeks after that

Creating report data

pip install -r requirements
make generate_parameters
make all -j 30

If needed update previous month's reports. Make sure that the hard-coded months are accurate.

python run_all_months.py

Generate static site

From within the build subfolder

npm run build
python -m http.server

Publishing to development website

make sync

Github actions automatically build and deploy any changes to the development branch. May need to re-run github actions. If on the main branch, need to sync development and main branch.

gsutil -m rsync -r -d gs://gtfs-data-test/report_gtfs_schedule/ gs://gtfs-data/report_gtfs_schedule/

The built HTML is pushed automatically as development-build. This site can be viewed at https://development-build--cal-itp-reports.netlify.app/.

Review

Deploy Reports

to push report data to the production bucket

make sync-prod

or to copy from the dev to prod.

gsutil -m rsync -r -d gs://gtfs-data-test/report_gtfs_schedule/ gs://gtfs-data/report_gtfs_schedule/

In order to deploy the site, ensure the data was pushed to the production bucket, and merge any changes into the main branch.

If there are no changes between development and production rerun the last github action workflow run on main.

Email reports

Testing

Obtain test emails from Cal-ITP technical lead (@evansiroky). Verify with Transit Data Quality Lead (@o-ram) and Cal-ITP comms lead that email contents are correct. Update the config file.

Generate the template (if needed)

script execution in development

python 3_generate_report_emails.py development

Production

Once emails have passed visual inspection, change config file for production

python 3_generate_report_emails.py production 

pass prompt that asks if production is correct and verify email recipients are production send out emails

If an email is no longer active, the send loop will continue and the email that produced the error will be printed in the console.

Verify emails successfully sent

Verify emails in GH Actions

Nkdiaz commented 2 years ago

February emails were sent on march 8 2022