-
Notifications
You must be signed in to change notification settings - Fork 798
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
[RNMobile] Address failing mobile tests #24020
Conversation
…com/Automattic/jetpack into rnmobile/update-path-to-base-styles
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
This reverts commit 1b18759.
…com/Automattic/jetpack into rnmobile/update-path-to-base-styles
Caution: This PR has changes that must be merged to WordPress.com |
Great news! One last step: head over to your WordPress.com diff, D79174-code, and deploy it. Thank you! |
r244179-wpcom |
Thanks @SiobhyB for addressing this issue 🙇 .
@SiobhyB Good catch! Yep, as you pointed out, it looks like it wouldn't be necessary to import the base styles as we're already doing it in the sass-transformer file 👍 .
Agreed, I think this fix will work for the short term, but I advocate trying to fix the root cause because we might require importing statements like that in the future. Being this said, I'd proceed with this fix and probably open an issue as a follow-up with this information. I haven't investigated further the issue, but looks like it's related to importing styles via |
Thanks @fluiddot! I've gone ahead to create a separate issue for investigating the root cause of this error at wordpress-mobile/gutenberg-mobile#4786. |
Fixes a recent breakage in the native build, which can be viewed here: https://app.circleci.com/pipelines/github/wordpress-mobile/gutenberg-mobile/17096/workflows/37583660-a955-4550-ac07-9fdab16dd5b8/jobs/93001
The error logs associated with this breakage can be viewed here, and is related to files that were moved in #23817. (click for more ⤵︎)
Related PRs
gutenberg-mobile:
Address failing mobile tests wordpress-mobile/gutenberg-mobile#4776Changes proposed in this Pull Request:
sass-transformer.js
file and that attempting to re-import them via the Jetpack package is causing the error.@automattic/jetpack-base-styles/gutenberg-base-styles
import referenced in the Contact Info block'sstyle.native.scss
file has been removed.@automattic/jetpack-base-styles/gutenberg-base-styles
import.style.native.scss
file, I tested changing the values of the colours with other values from core's_colors.native.scss
file. I confirmed they loaded as expected, Gutenberg's base files seem to be loaded on the native side without the Jetpack import/package.Further Investigations
Below, I've detailed other approaches I've experimented with, leading to my decision to ultimately remove references to the imports. (click for more ⤵︎)
@automattic/jetpack-base-styles/gutenberg-base-styles
in thestyle.native.scss
files for any of the core Gutenberg blocks. So, this isn't specific to how the package is being loaded in Jetpack.@automattic/jetpack-base-styles
package, via the instructions here, in the Gutenberg Mobile directory. The same error persisted.gutenberg-base-styles
with any of the other options offered by the package (e.g.@automattic/jetpack-base-style/styles
brought more success, with the tests either passing or producing more specific errors related to syntax.I think, ideally, we'd get the
@automattic/jetpack-base-styles/gutenberg-base-styles
working with the native build rather than just removing it, to future-proof against further breakages. I haven't been able to figure out a way to do this, however. I'd be grateful for any other thoughts or input.Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No, it doesn't.
Testing instructions:
Verify tests pass
npm run bundle
from the Gutenberg Mobile directory and verify the command completes with no error.Check for regressions