🐛 Bug Report: Repo Tools - API Reports - Process swallowed if args are not correct #27551
Closed
2 tasks done
Labels
bug
Something isn't working
📜 Description
If you have a space in the command like this, the space is in the args being sent to the
-o
flag:backstage-repo-tools api-reports -o ae-wrong-input-file-type, ae-undocumented --validate-release-tags
The command will only output:
👍 Expected behavior
I "think" the behaviour in this case should be an error that the command is wrong and that perhaps saying it got unexpected arguments.
👎 Actual Behavior with Screenshots
If you have a space in the command like this, the space is in the args being sent to the
-o
flag:backstage-repo-tools api-reports -o ae-wrong-input-file-type, ae-undocumented --validate-release-tags
The command will only output:
👟 Reproduction steps
This works best when you have changes that would need the API Reports to be updated.
In this repo or the Community Plugins repo update a
build:api-reports:only
script to pass args to the-o
flag with a space between them like this:backstage-repo-tools api-reports -o ae-wrong-input-file-type, ae-undocumented --validate-release-tags
Then run
yarn build:api-reports
notice that it does not generate a new API ReportNotice: the API Reports are not updated/generated
📃 Provide the context for the Bug.
I made the mistake of adding a space when I was upgrading the Azure DevOps plugins to
1.32.x
. As this does not cause any errors it was merged in. Then in follow up PRs where I expected the API Reports to change I noticed this issue and fixed it.This is problematic as it won't get picked up by the CI and you can easily move forward without these reported being updated.
🖥️ Your Environment
This repo or the Community Plugins repo
👀 Have you spent some time to check if this bug has been raised before?
🏢 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
The text was updated successfully, but these errors were encountered: