-
Notifications
You must be signed in to change notification settings - Fork 309
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
MFE builds failing as a result of unresolved dependency #102
Comments
Hello. Can you list down which tutor, tutor-mfe, and tutor-indigo versions are you using? There are no active dependencies issues as far as I know. You can look at https://github.com/overhangio/tutor-mfe/?tab=readme-ov-file#troubleshooting to understand how to debug dependencies conflicts.
What do you mean by swapping out components? If you are asking about developing or customizing MFEs, you can look at https://github.com/overhangio/tutor-mfe/?tab=readme-ov-file#customising-mfes and https://github.com/overhangio/tutor-mfe/?tab=readme-ov-file#mfe-development.
It would be good to use it because multiple npm installs usually result in connection issues. The less the number of parallel builds, the better the chances of image getting built without any connection issues. You might want to check your docker buildx cache size. If the cache size is small, the previous build artifacts might not be cached entirely and it would result in next build re-building the things it should not have to. |
Hi Dawoud, Thanks for the follow-up
Admittedly I am using older versions of tutor-mfe with a newer version of tutor-indigo, but this has worked successfully for me in the past: NAME STATUS VERSION
This answers my question thanks
Your caching suggestion has also helped thanks |
Yes, using different release versions(17 & 18 for instance) is not recommended as it causes compatibility and other issues. Provided the context you have added above, this is not an issue. I am closing this issue, let me know if you have any further questions. Thanks |
Hi
I'm attempting to rebuild the mfe
tutor images build mfe --no-cache --no-registry-cache
, but i'm receiving the following issue*Note repeated runs yield the same results, so it's not a once off.
I've tried adjusting the associated mfe-dockerfile-post-npm-install-* patches with the following:
RUN npm install '@edx/frontend-platform@^7.0.0'
before the @edx/[email protected]RUN npm install --force '@edx/frontend-component-header@npm:@edly-io/indigo-frontend-component-header@^3.1.3'
--legacy-peer-deps
But non of these approaches yielded a positive outcome, all attempted builds failed later down the line because of some or other dependancies.
My questions are:
What is the ideal way to develop the MFE, where I can test and swap out components etc? I'm running the whole
tutor images build mfe --no-cache --no-registry-cache
pipeline over and over on a reduced max-parallelism setup, which takes forever to build and often results in a failed build 10-20mins later.What is the most efficient way to build the MFE, should we still be using the
max-parallelism = 2
hack?https://docs.tutor.edly.io/troubleshooting.html#high-resource-consumption-by-docker-on-tutor-images-buildDo you know what could be the actual root cause of this issue i've described above?
The text was updated successfully, but these errors were encountered: