-
Notifications
You must be signed in to change notification settings - Fork 8
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
.gimbalrc.yml in root folder being ignored #160
Comments
Thank you for trying Gimbal and sorry you have come across an issue. I in no way, doubt the bug as you have provided a lot to work with. However, trying it out myself I could not reproduce the issue. I started with a new CRA app, added devDependencies and scripts to package.json, added the .gimbalrc.yml file, couple things to a gitignore and was able to run the script and it picked up the .gimbalrc.yml file. To help, I created a repo so you can see the necessary files and the commit to specifically add teh gimbal stuff is here. The output of this is: Now, the only difference here is I see you are using Windows 10 and I'm using Mac but I would be surprised to find out that finding the file is different. We do use globby to find the gimbal config file (since we also support json and js config files) and globby is an extremely popular module. I'll attempt to get a VM running today and retest the repo I created. |
Attempted on a Win 10 VM and ran into this issue I'm trying to work around: GoogleChrome/lighthouse#9860 |
Worked around it by commenting out lighthouse and looks like I can reproduce it. On windows, I'm required to use the |
@mitchellsimoens Thanks so much for all your feedback, I really appreciate it!! If I can provide any other insight or food for thought, I will add it here 😃 Thanks again |
Thanks for reporting @bronz3beard! |
Describe the bug
The lighthouse audit thresholds set in my .gimbalrc.yml seem to be ignored when running the audit command, and command
gimbal audit
runs and produces a report but exits with an error:error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To Reproduce
install dev dependencies:
"devDependencies": {
"@modus/gimbal": "^1.2.6",
"@modus/gimbal-plugin-axe": "^1.2.6",
"@modus/gimbal-plugin-last-value": "^1.2.6",
"@modus/gimbal-plugin-sqlite": "^1.2.6"
}
test script before setting up .gimbalrc.yml
"scripts": {
"gimbal-audit": "gimbal audit"
}
run script:
yarn run gimbal-audit
OUTPUT:
Label │ Value │ Threshold │ Success │
│ Size Checks [ success: ✓ ]│
│ Heap Snapshot Checks [ success: x ] │
│ Documents │ 3 │ 5 │ ✓ │
│ Frames │ 1 │ 2 │ ✓ │
│ JSHeapTotalSize │ 23199744 │ │ ✓ │
│ JSHeapUsedSize │ 15893968 │ │ ✓ │
│ LayoutCount │ 2 │ 5 │ ✓ │
│ Nodes │ 1381 │ 75 │ x │
│ RecalcStyleCount │ 4 │ 6 │ ✓ │
│ Unused Source Checks [ success: x ] │
│ http://localhost:3000/ │ 68.63% │ 65% │ x │
│ ... p://localhost:3000/static/css/2.b31c041a.chunk.css │ 100.00% │ 35% │ x │
│ ... /localhost:3000/static/css/main.3d2bbf6e.chunk.css │ 89.62% │ 35% │ x │
│ http://localhost:3000/ │ 23.33% │ 30% │ ✓ │
│ ... ttp://localhost:3000/static/js/2.b80883ac.chunk.js │ 69.57% │ 70% │ ✓ │
│ ... ://localhost:3000/static/js/main.aae40300.chunk.js │ 53.01% │ 15% │ x │
│ Lighthouse Audits [ success: x ]│
│ Performance │ 0 │ 50 │ x │
│ Accessibility │ 79 │ 75 │ ✓ │
│ Best Practices │ 100 │ 95 │ ✓ │
│ SEO │ 82 │ 90 │ x │
│ Progressive Web App │ 28 │ 50 │ x │
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Add .gimbalrc.yml to root folder of project
The .gimbalrc.yml is configured by default from here,
changes include;
Run script:
yarn run gimbal-audit
OUTPUT:
Same results as above with same error.
Expected behaviour
I am expecting my lighthouse audit thresholds to all be 95 and for the script to run, produce a report without an error.
Screenshots
.gimbalrc.yml
Desktop (please complete the following information):
Additional context
Due to the .gimbalre.yml being ignored there is no output in the artifacts folder.
I suspect this is more a me issue than a gimbal issue but I was not able to find many answers online so I wanted to raise an issue with the source :-)
I am pretty excited about having this setup, and once this small issue is clarified I am looking to add a github action 😃
Please let me know if i need to provide any further information.
The text was updated successfully, but these errors were encountered: