Skip to content

Remove frictionlessdata/repository@v2 from actions#3

Closed
gabrielbdornas wants to merge 1 commit intomaxfordham:fix-cifrom
gabrielbdornas:fix-ci
Closed

Remove frictionlessdata/repository@v2 from actions#3
gabrielbdornas wants to merge 1 commit intomaxfordham:fix-cifrom
gabrielbdornas:fix-ci

Conversation

@gabrielbdornas
Copy link
Copy Markdown

See frictionlessdata/frictionless-ci#58

@jgunstone, as I told you here, I'm not sure if the repo frictionless-ci is active.

Based on that, I didn't spend much time debugging the actions error1:

Error: Cannot upload inquiry: Create Artifact Container failed: The artifact name inquiry is not valid. Request URL https://pipelinesghubeus11.actions.githubusercontent.com/KokPz7uTuYnh7CGfrzTLXevWATit6L4HKlH6BT8YeA8xvYZUZW/_apis/pipelines/workflows/18525185268/artifacts?api-version=6.0-preview

My suggestion would be creating your own actions to install2 and run frictionless validate command. If the validation fails, you could be notified. I used the JasonEtco/create-an-issue@v2 actions to create issues on failures, but you could change this approach based on your needs. You could also remove it if your only concern is not allowing merges on PR with invalid data.

Maybe the disadvantage of this approach is losing the pretty validation errors created by frictionless-ci, but I think done is better than perfect, isn't it!!!?

Let me know if you have questions or need further help before merging it.

Footnotes

  1. I also run it locally using act and received an inquiry similar error: Cannot upload inquiry: Unable to get ACTIONS_RUNTIME_TOKEN env variable.

  2. As I'm more comfortable using Poetry, this was the tool used to install and run frictionless in actions environment. But this could be changed without losing the suggestion idea.

See frictionlessdata/frictionless-ci#58
Using poetry to install frictionless
Run frictionless validate
Create issue on failure using JasonEtco/create-an-issue@v2
@jgunstone
Copy link
Copy Markdown
Contributor

Hi @gabrielbdornas - thanks so much for your help with this!

I integrated the logic you described here:
https://github.com/jgunstone/netzero-metrics-reference-data/pull/2/files#diff-176d86eb7bf337e4051cd9c7722ccc9877813bb48d49f1f25631a5480d4327c8

but I'm a big pixi user (rather than poetry) so used that instead.

I'm still getting an issue with the action that creates an issue on fail... I guess I need to somehow pass the outcome of the frictionless validation to the message?

@jgunstone
Copy link
Copy Markdown
Contributor

closing this as the principle outlined by @gabrielbdornas was merged in #2
thanks for your help

@jgunstone jgunstone closed this Nov 11, 2025
gabrielbdornas added a commit to gabrielbdornas/uknzcb-eui-targets that referenced this pull request Nov 11, 2025
gabrielbdornas added a commit to gabrielbdornas/uknzcb-eui-targets that referenced this pull request Nov 11, 2025
Use actions to create Issue on frictionless validate errors
See maxfordham#3 (comment)
@gabrielbdornas
Copy link
Copy Markdown
Author

@jgunstone, my pleasure!

I'm still getting an issue with the action that creates an issue on fail... I guess I need to somehow pass the outcome of the frictionless validation to the message?

Look, it worked here. I just uncomment (gabrielbdornas@8831794) the step in the action and then, emulate an error in your data (gabrielbdornas@8831794).

What pass the outcome of the frictionless validation to the massage is the if: failure() property within the stpep configurations.

This created the issue https://github.com/gabrielbdornas/uknzcb-eui-targets/issues/1in my forked repository.

I did this way because I supposed you wanted to be notified only when something go wrong. But of course your use case could be different, and you can improve this logic.

In any case, just let me know if you need more help to improve this logic in one or another way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants