-
Notifications
You must be signed in to change notification settings - Fork 531
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]: CI Check for color usage in vectors will never pass until minSdk is updated #5072
Comments
Hi @MohitGupta121, could you please take a look at disabling this CI check as it blocks my PR? Additionally, could you please also file a seperate issue that tracks adding that check back once we deprecate support for kitkat? |
@adhiamboperes one solution is to add those failing files in the exempted test. After that KitKat thing is done we can remove that. Can I do this in the new PR or are you doing it in your PR? |
I don't know whether exempting files is a robust solution, since I cannot say when KitKat deprecation will be prioritized. Could you give me a rough estimate of how much work it would be to disable the check (are tests involved, are there potential breakages) vs the exemption solution. I think it is fine to go with the simplest solution here. |
@adhiamboperes disabling the tests means removing the condition regex for drawables. |
Do you estimate that it will involve a lot of work to remove it? |
No it take few lines change |
I would prefer that we go with that solution. Could you please put up a PR for that? |
@adhiamboperes okay sure today I'll make PR. |
…5076) <!-- READ ME FIRST: Please fill in the explanation section below and check off every point from the Essential Checklist! --> ## Explanation Fix #5072 : Remove condition of hex color for drawables from regex <!-- - Explain what your PR does. If this PR fixes an existing bug, please include - "Fixes #bugnum:" in the explanation so that GitHub can auto-close the issue - when this PR is merged. --> ## Essential Checklist <!-- Please tick the relevant boxes by putting an "x" in them. --> - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only <!-- Delete these section if this PR does not include UI-related changes. --> If your PR includes UI-related changes, then: - Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes - For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see [RTL guide](https://github.com/oppia/oppia-android/wiki/RTL-Guidelines)) - Add a video showing the full UX flow with a screen reader enabled (see [accessibility guide](https://github.com/oppia/oppia-android/wiki/Accessibility-A11y-Guide)) - Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing
Describe the bug
File Content Validation CI check that prohibits usages of colors other than component_colors in drawable files fails correctly on CI when violated, but the pattern that is being enforced cannot be supported by our current codebase, since we have not yet removed support for kitkat.
The CI error is:
Upon applying the recommended fix, the project build fails with error:
Steps To Reproduce
In any vector file in res/drawable, replace a
<path>
tagfillColor
attribute color hex (e.g. #ffffff) with a color resource (e.g. @color/component_color_shared_screen_secondary_background_color) and then rebuild the app.Expected Behavior
I expect the project to build without errors.
Screenshots/Videos
What device/emulator are you using?
No response
Which Android version is your device/emulator running?
No response
Which version of the Oppia Android app are you using?
No response
Additional Context
This check was introduced in #4960
The text was updated successfully, but these errors were encountered: