Skip to content

API CI job 'build-and-validate' throws dubious ownership error #1036

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

Closed
michael-valdron opened this issue Feb 16, 2023 · 2 comments · Fixed by #1045
Closed

API CI job 'build-and-validate' throws dubious ownership error #1036

michael-valdron opened this issue Feb 16, 2023 · 2 comments · Fixed by #1045
Assignees
Labels
area/api Enhancement or issue related to the api/devfile specification area/ci kind/bug Something isn't working severity/blocker Issues that prevent developers from working

Comments

@michael-valdron
Copy link
Member

michael-valdron commented Feb 16, 2023

Which area this feature is related to?

/kind bug

Which area this bug is related to?

/area ci
/area api

Bug Summary

Describe the bug:

The CI job 'build-and-validate' fails on the step 'Check typescript model generation' due to an error which happens when trying to run the openapi-generator from https://github.com/kubernetes-client/gen. This error seems to be caused by unresolved issues between newer versions of git and GitHub runners: actions/runner-images#6775 (comment).

Here is a list of issues which provides more detail on this:

To Reproduce:

Create a PR under devfile/api and let the job 'build-and-validate' run. Output of such a case can be seen here: https://github.com/devfile/api/actions/runs/4196247484/jobs/7276947737

Expected behavior

/source/openapi-generator / should be able to execute as expected.

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable

/source/openapi-generator /
fatal: detected dubious ownership in repository at '/source/openapi-generator'
To add an exception for this directory, call:

	git config --global --add safe.directory /source/openapi-generator
Error: Process completed with exit code 128.

Additional context

Any workaround?

None.

Suggestion on how to fix the bug

The commit revision for kubernetes-client/gen under build/typescript-model/generate.sh#L9 to reflect the changes introduced in kubernetes-client/gen#237 which fixes this issue.

Target Date: 03-10-2023

@openshift-ci openshift-ci bot added kind/bug Something isn't working area/ci area/api Enhancement or issue related to the api/devfile specification labels Feb 16, 2023
@michael-valdron michael-valdron changed the title CI job 'build-and-validate' throws dubious ownership error API CI job 'build-and-validate' throws dubious ownership error Feb 16, 2023
@michael-valdron michael-valdron added the severity/blocker Issues that prevent developers from working label Feb 16, 2023
@michael-valdron michael-valdron self-assigned this Feb 28, 2023
@michael-valdron michael-valdron mentioned this issue Mar 2, 2023
4 tasks
@michael-valdron
Copy link
Member Author

blocked by kubernetes-client/gen#238

@michael-valdron
Copy link
Member Author

Workaround found: 6a30c43

kubernetes-client/gen#238 is no longer blocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Enhancement or issue related to the api/devfile specification area/ci kind/bug Something isn't working severity/blocker Issues that prevent developers from working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant