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 Report: scaffolder "catalog:register" step fails to fetch component.yaml from github.com #19678

Closed
2 tasks done
ryanj opened this issue Aug 30, 2023 · 2 comments
Closed
2 tasks done
Labels
area:catalog Related to the Catalog Project Area area:scaffolder Everything and all things related to the scaffolder project area bug Something isn't working help wanted Help/Contributions wanted from community members stale

Comments

@ryanj
Copy link

ryanj commented Aug 30, 2023

📜 Description

The scaffolder catalog:register action fails to read the newly uploaded component.yaml from github following a successful publish:github action

👍 Expected behavior

Files that are uploaded using the publish:github action are normally available without any delay (available for use in the following catalog:register scaffolder action step)

👎 Actual Behavior with Screenshots

The scaffolder's catalog:register action fails to fetch the newly published component.yaml from github (404 error)

image

Screenshot 2023-08-25 at 1 15 03 PM

👟 Reproduction steps

  1. Set up backstage on Azure using GitHub and the following template: https://github.com/janus-idp/software-templates/blob/main/templates/github/spring-boot-backend/template.yaml
  2. Use the template to create a new software component
  3. The error should appear in the scaffolder output

📃 Provide the context for the Bug.

This bug was encountered by 100% of the users in a recent workshop. We were able to reproduce the issue with 100% reliability on our backup cluster as well.

We were able to successfully work around the issue by adding a small delay before reading from Github

🖥️ Your Environment

I experienced this bug while using backstage in a "production" deployment on Azure in "eastus2"

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

No, but I'm happy to collaborate on a PR with someone else

@ryanj ryanj added the bug Something isn't working label Aug 30, 2023
@github-actions github-actions bot added area:catalog Related to the Catalog Project Area area:scaffolder Everything and all things related to the scaffolder project area labels Aug 30, 2023
@Rugvip
Copy link
Member

Rugvip commented Aug 31, 2023

I think I'd be good if we add a wait at the end of all publish/create/push actions where we poll the API to make sure that the repo or content we just created is ready to be used. That way any followup action won't need to worry about the repo or new repo contents potentially not existing yet.

Leaving this open for contributions

@Rugvip Rugvip added the help wanted Help/Contributions wanted from community members label Aug 31, 2023
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 30, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:catalog Related to the Catalog Project Area area:scaffolder Everything and all things related to the scaffolder project area bug Something isn't working help wanted Help/Contributions wanted from community members stale
Projects
None yet
Development

No branches or pull requests

2 participants