Shopify / dawn

Shopify's first source available reference theme, with Online Store 2.0 features and performance built-in.
Other
2.55k stars 3.45k forks source link

Theme Check passes in CI but not locally with `shopify theme check` #2944

Open st3phhays opened 1 year ago

st3phhays commented 1 year ago

Describe the current behavior

It appears, as of this commit, that the Theme Check is passing on CI. However, when running shopify theme check locally on a fresh repo cloned from the same commit, shopify theme check reports 291 files inspected, 29 offenses detected, 20 offenses auto-correctable

Describe the expected behavior

If the Theme Check passes in CI, it should also pass locally given that the repos are exactly at the same point in time.

Version information (Dawn, browsers and operating systems)

Possible solution

I'm unsure of how to fix this.

Additional context/screenshots

Screen Shot 2023-08-05 at 6 05 13 PM
renzonj commented 1 year ago

same issue 🤔..

Alonski commented 1 year ago

Would a PR fixing this be welcome? CC @eugenekasimov as it seems this is happening since your commit (maybe by luck)

Alonski commented 1 year ago

I think I found the problem. It seems that shopify theme check doesn't exit with an exit code of 1 but instead 0 which makes CI believe it passed. The issues that can be fixed locally are mentioned in the CI report: https://github.com/Shopify/dawn/actions/runs/6814109231/job/18530227027

These all seem to be suggestions thought so maybe that is why this doesn't error.

Would it make sense for suggestions to actually error the action so that this theme remains without theme check issues even if they are suggestions?

The action is defined here: https://github.com/Shopify/theme-check-action/blob/main/entrypoint.sh

eugenekasimov commented 1 year ago

@Alonski it's always welcome to PRs in dawn public. I can't guarantee how quick we can have bandwidth for reviewing it though. But if it's something simple and you can open a quick PR for this, please go ahead 👍

abhishekjani08 commented 11 months ago

I would like to work on this issue!✅🚀