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

Bug: scaffolder fails to read component.yaml from github #463

Closed
ryanj opened this issue Aug 25, 2023 · 2 comments
Closed

Bug: scaffolder fails to read component.yaml from github #463

ryanj opened this issue Aug 25, 2023 · 2 comments
Labels
kind/bug Something isn't working status/triage

Comments

@ryanj
Copy link

ryanj commented Aug 25, 2023

Describe the bug

While using a template, the scaffolder fails to read the newly uploaded component.yaml from github.com

Screenshot 2023-08-25 at 1 15 03 PM

image

  1. The scaffolder will create a new repo and upload it to github.com
  2. After uploading the repo to github.com, the scaffolder should register the newly uploaded component.yaml file with RHDH.
  3. The scaffolder will fail, reporting that the component.yaml file is unavailable on github.com.
  4. Clicking on the link to the component.yaml file will reveal that the file was successfully created. Seems to indicate a race condition?

This issue was not reproducible when using GitLab

Expected Behavior

Uploaded assets should be immediately available via API - but there seems to be some delay on github.com.

Suggestion: The scaffolder should add a small delay before attempting to read the component.yaml from github.com, or add a retry in case of 404?

What are the steps to reproduce this bug?

  1. Set up rhdh-0.1 on Azure (ARO)
  2. Use a template to create a new component

Versions of software used and environment

quay.io/rhdh/developer-hub-rhel9:0.1 on Azure (ARO) via demo-setup

@ryanj ryanj added kind/bug Something isn't working status/triage labels Aug 25, 2023
@ryanj
Copy link
Author

ryanj commented Aug 25, 2023

This change offers a temporary resolution by adding a delay in the templating process: redhat-scholars/backstage-workshop@d9436a2

@ryanj
Copy link
Author

ryanj commented Aug 30, 2023

Moving this bug report upstream: backstage/backstage#19678

@ryanj ryanj closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

No branches or pull requests

1 participant