MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
278 stars 100 forks source link

[REQUEST] Study possibility to run GitHub actions locally #431

Closed ghost closed 3 years ago

ghost commented 3 years ago

Is your feature request related to a problem? Please describe. This a split of #416

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Study possibility to run locally github actions https://github.com/nektos/act

ghost commented 3 years ago

It's actually super simple to use act. We have a bug though so I'll see after refactoring the GitHub workflows in the Docker image PR. #384

e-lo commented 3 years ago

This seems like a good solution to some of my other requests.

I was able to download and install act very easily but got this error when running it (not sure it is same one you all got)

(base) elizabeth@Elizabeths-MacBook-Pro-2 gtfs-validator % act
[Java CI/build   ] 🚀  Start image=node:12.6-buster-slim
[End to end/build] 🚀  Start image=node:12.6-buster-slim
[Java CI/build   ]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[End to end/build]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Java CI/build   ]   🐳  docker cp src=/Users/elizabeth/Documents/urbanlabs/CA Interoperable/gtfs-validator/. dst=/github/workspace
[End to end/build]   🐳  docker cp src=/Users/elizabeth/Documents/urbanlabs/CA Interoperable/gtfs-validator/. dst=/github/workspace
Error: error during connect: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.40/exec/0065c54f6c29faca7249ab278e81e5e395f6b86dee472800ab0746297de34754/start": net/http: HTTP/1.x transport connection broken: unsupported transfer encoding: "identity"
ghost commented 3 years ago

So, syncing the latest version of master and passing the command act -j run-on-data Now works fine with the validator running on all datasets until the persist artifact steps... image

... which is a known issue of act https://github.com/nektos/act/issues/329

The files in question can be manually collected inside the container. Datasets .zip files are present as well as validation reports .json in the output folder image

I think that's as far as we can go presently. Do you think @e-lo that would be enough to close this issue after updating the documentation?

ghost commented 3 years ago

@e-lo the documentation has been updated. Let us know as we will merge it for release v1.3.0 that should happen today no earlier than 14:00 EST

See https://github.com/MobilityData/gtfs-validator/tree/local-github-action#via-run-on-data-github-workflow-job