-
Notifications
You must be signed in to change notification settings - Fork 40
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
Betterer CI fails #1124
Comments
I hope this is helpful: I diffed the A temporary fix may be to patch your local installation to not fail on changes if the corresponding runSummary's 1. Differing file paths for various error messagesbaseline:
results:
baseline:
results:
2. Type definitions reordered:This was the bulk of the differences between baseline and result. baseline:
result:
TS's truncated messages show different fields: baseline:
result:
|
Thanks for that lead, upon further examination at my results files I see that there some differences in my local results file and the results file on my CI. This pattern below was noticed in several places across the results file. local results file
results file on my CI
I can confirm that the differences in the file are caused by the names of the CI specific build folders being appended to the errors. The |
Our team did some investigation to find out on what causes the different file paths for certain TypeScript errors. It turns out that certain TypeScript errors have full path names referred in the error messages. This causes differences between the Betterer results file locally and on the CI. This issue is an open issue in TypeScript as of today; microsoft/TypeScript#41398 10/05/2024 EDIT - We fixed our failures by actually fixing the Betterer errors that caused the differences in both files. Not the neatest way forward but it did the trick for us. |
Yeah, I have some code which is meant to strip out most of these, but it might not be smart enough! Hopefully can be done without adding to the API, but might require a custom transform hook before writing the results file |
i am still facing the same issue
|
We are also having this issue in our CI-pipeline. We are using the nx-betterer plugin and reverted back to v1.1.5 from v1.2.1. |
Describe the bug
npm run betterer ci
failing in my Azure Pipelines CITo Reproduce
When I ran
npm run betterer ci
on my pipeline step, the following error was observed.However, when I run
npm run betterer ci
in my local directory, the command is executed successfully. When I push to remote, I push the most up-to-date results file.It appears there are a few more users who faced the same issue as per; #983
Expected behavior
I expect the Betterer CI command to work on my Azure CI pipeline the way it behaves in my local
Any advice on how I can debug this on the CI?
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: