Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quality Check Pipelines doesn't Work for Different Dependencies Filenames #230

Closed
mhellmeier opened this issue Aug 17, 2023 · 10 comments · Fixed by eclipse-tractusx/tractusx-quality-checks#44
Assignees
Labels
bug Something isn't working

Comments

@mhellmeier
Copy link
Member

The Quality Check GitHub Action currently doesn't work for dependency files named differently than DEPENDENCIES. Similar to #228, it doesn't work for DEPENDENCIES_FRONTEND and DEPENDENCIES_BACKEND files.

Example:
The following repository has two dependencies files:
https://github.com/eclipse-tractusx/puris

The Quality Check pipeline based on the template fails with the following error:

Failed! Guideline description: All repositories must follow specified files and folders structure.
The check detected following mandatory files missing: DEPENDENCIES docs charts
More infos: https://eclipse-tractusx.github.io/docs/release/trg-2/trg-2-3

Source: https://github.com/eclipse-tractusx/puris/actions/runs/5880349374/job/15946439222?pr=18

CC: @SebastianBezold

@mhellmeier
Copy link
Member Author

We tested it but even after the update, the Q-Gate workflow still fails, even if both DEPENDENCIES files are present:
https://github.com/eclipse-tractusx/puris

Can you please have a look into it again, @SebastianBezold & @tomaszbarwicki

@mhellmeier mhellmeier reopened this Aug 31, 2023
@tomaszbarwicki
Copy link
Contributor

Hi @mhellmeier, thanks for reaching out. Can you please provide the check result?

I've run the latest version against puris repo and it doesn't complain about DEPENDENCIES any more, that's what I see:

7. Testing Quality Guideline: TRG 2.03 - Repo structure
Warning! Guideline description: All repositories must follow specified files and folders structure.
	The check detected following optional files missing: AUTHORS.md
	More infos: https://eclipse-tractusx.github.io/docs/release/trg-2/trg-2-3
Failed! Guideline description: All repositories must follow specified files and folders structure.
	The check detected following mandatory files missing: docs, charts
	More infos: https://eclipse-tractusx.github.io/docs/release/trg-2/trg-2-3 

@SebastianBezold
Copy link
Contributor

Hmm I saw the PR comment first and replied there :).
I think it could be related to the default version of the qualtiy-checks binary being stuck to the old, "non-fixed" version

@mhellmeier
Copy link
Member Author

See, for example, this execution:
https://github.com/eclipse-tractusx/puris/actions/runs/6037040940/job/16385000174

It still outputs:

Failed! Guideline description: All repositories must follow specified files and folders structure.
	The check detected following mandatory files missing: DEPENDENCIES docs charts
	More infos: https://eclipse-tractusx.github.io/docs/release/trg-2/trg-2-3

@tomaszbarwicki
Copy link
Contributor

It seems that quite old version is used in your workflow:

image

@SebastianBezold:

@mhellmeier workflow is https://github.com/eclipse-tractusx/puris/actions/runs/6037040940/workflow
which uses https://github.com/eclipse-tractusx/sig-infra/blob/main/.github/workflows/reusable-quality-checks.yaml

and there is old 0.4 version eclipse-tractusx/[email protected]

@SebastianBezold
Copy link
Contributor

I just bumped the version in the reusable-quality-checks workflow as well.
After the current quality check phase is done, we really have to structure the process for upgrades of the checks better. Maybe having action and workflow at different places is not a good idea

@mhellmeier
Copy link
Member Author

I just rerun the job, but it is still failing:
https://github.com/eclipse-tractusx/puris/actions/runs/6037040940/job/16414887253

It again uses the version 0.4:

Run eclipse-tractusx/[email protected]

But as you can see, we defined to use the latest version on main without overwriting the version:
https://github.com/eclipse-tractusx/puris/actions/runs/6037040940/workflow

@tom-rm-meyer-ISST
Copy link

@SebastianBezold, we now have another issue in the downstream repositories when creating PRs. We're unable to find version v0.7 that is not specifically specified. Please refer to this run for the following error:
"Error: Unable to resolve action eclipse-tractusx/[email protected], unable to find version v0.7"

@tomaszbarwicki
Copy link
Contributor

@SebastianBezold, perhaps we need to add a v0.7 tag which is missing I believe.

@tomaszbarwicki
Copy link
Contributor

Issue fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants