Skip to content

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

Closed
@michael-valdron

Description

@michael-valdron

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

Metadata

Metadata

Labels

area/apiEnhancement or issue related to the api/devfile specificationarea/cikind/bugSomething isn't workingseverity/blockerIssues that prevent developers from working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions