Skip to content

mt-check-data-outdated.yml > takes too long #627

@mmathieum

Description

@mmathieum

shared-overwrite/.github/workflows/mt-check-data-outdated.yml

we need to read the times from app-android/res-*/values*_gtfs_rts_values_gen.xml files directly instead of having to use ./.github/actions/setup and then agency-parser/check_data_outdated.sh which represents 90% of the workflow run duration.

Also would try to use Github Linux runners built in tools (grep, sed...) instead of having to install "libxml2-utils" package to use "xmllint".
Like we were doing here:

grep -E "<integer name=\"[^\"]*_gtfs_rts_last_departure_in_sec\">[0-9]+</integer>" "$FILE" 2>/dev/null | sed 's/[^[:digit:]]*\([[:digit:]]\+\).*/\1/' || echo "";

Let's make this workflow as fast as possible since it's meant to run (almost) daily.

For example: actions/checkout should only load the minimum amount of data.

Metadata

Metadata

Labels

P3⏸️ Priority 3: Mediumenhancementgithub_actionsPull requests that update GitHub Actions code

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions