Skip to content

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

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

Activity

  1. added
    kind/bugSomething isn't working
    area/apiEnhancement or issue related to the api/devfile specification
    on Feb 16, 2023
  2. changed the title [-]CI job 'build-and-validate' throws dubious ownership error[/-] [+]API CI job 'build-and-validate' throws dubious ownership error[/+] on Feb 16, 2023
  3. michael-valdron commented on Mar 2, 2023

    @michael-valdron
    MemberAuthor
  4. michael-valdron commented on Mar 6, 2023

    @michael-valdron
    MemberAuthor

    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

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