tweag / nixpkgs-graph-explorer

Explore the nixpkgs dependency graph
MIT License
15 stars 0 forks source link

CI: add nightly pipeline, that runs extraction #102

Closed smelc closed 1 year ago

smelc commented 1 year ago

Fixes #34

What this PR does

This PR adds a nightly pipeline, that runs every day, and runs the extraction; to make sure it works.

How to trust this PR

I tried running locally with act (with act workflow_dispatch -j nightly), but it fails without meaningful feedback. And we can't run the action manually until this PR is merged. I propose to simply merge the PR and then run the pipeline manually (it's possible since it has the workflow_dispatch keyword) and take it from there.

Possible follow-up

Notify on Slack's #nixkpkgs-graph-explorer when the nightly fails, for example using this action. This can be done later.

GuillaumeDesforges commented 1 year ago

Trying to run it https://github.com/tweag/nixpkgs-graph-explorer/actions/runs/5014592247

GuillaumeDesforges commented 1 year ago

Oh I'm thinking, maybe the graph.json could be stored as a job artifact?

GuillaumeDesforges commented 1 year ago

Failed to run https://github.com/tweag/nixpkgs-graph-explorer/actions/runs/5014592247/jobs/8989034723#step:5:9

nix develop --command bash -c 'cd core && poetry run python -m explorer.extract graph.json'
wc -l graph.json
shell: /usr/bin/bash -e {0}
trace: warning: qt[5](https://github.com/tweag/nixpkgs-graph-explorer/actions/runs/5014592247/jobs/8989034723#step:5:5) now uses makeScopeWithSplicing which does not have "overrideScope'", use "overrideScope".
Error: The operation was canceled.