Skip to content
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

fix(microfrontends): fix handling of unsupported version #9883

Conversation

chris-olszewski
Copy link
Member

Description

Make it so any invalid MFE configs no longer fail the process.

We had this behavior previously for unsupported versions, but it broke somewhere along the lines where we were throwing InvalidVersions instead.

Testing Instructions

Added unit test. Quick manual verification:

[0 olszewski@chriss-mbp] /Users/olszewski/code/vapi $ turbo_dev --skip-infer build --dry > /dev/null
turbo 2.4.0

 WARNING  Ignoring control-plane-default: Unsupported microfrontends configuration version: 2. Supported versions: ["1"]

@chris-olszewski chris-olszewski marked this pull request as ready for review February 3, 2025 16:27
@chris-olszewski chris-olszewski requested a review from a team as a code owner February 3, 2025 16:27
Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 4:27pm

@chris-olszewski chris-olszewski enabled auto-merge (squash) February 3, 2025 16:29
@chris-olszewski chris-olszewski merged commit 478b66d into main Feb 3, 2025
38 checks passed
@chris-olszewski chris-olszewski deleted the chrisolszewski/turbo-4424-investigate-turbo24-upgrade-failure-with-microfrontendsjson branch February 3, 2025 16:54
chris-olszewski added a commit that referenced this pull request Feb 4, 2025
### Description

Make it so any invalid MFE configs no longer fail the process. 

We had this behavior previously for unsupported versions, but it broke
somewhere along the lines where we were throwing `InvalidVersions`
instead.

### Testing Instructions

Added unit test. Quick manual verification:
```
[0 olszewski@chriss-mbp] /Users/olszewski/code/vapi $ turbo_dev --skip-infer build --dry > /dev/null
turbo 2.4.0

 WARNING  Ignoring control-plane-default: Unsupported microfrontends configuration version: 2. Supported versions: ["1"]
```
chris-olszewski added a commit that referenced this pull request Feb 12, 2025
### Description

TSIA

We were requiring the version to exist in `VersionOnly` schema so we
could decide which config schema to use.

I'm assuming I broke this in
#9883, but it's not immediately
obvious to me how.

### Testing Instructions

Added failing unit test for versionless `Config::load_from_dir` call
chris-olszewski added a commit that referenced this pull request Feb 13, 2025
### Description

TSIA

We were requiring the version to exist in `VersionOnly` schema so we
could decide which config schema to use.

I'm assuming I broke this in
#9883, but it's not immediately
obvious to me how.

### Testing Instructions

Added failing unit test for versionless `Config::load_from_dir` call
joshnuss pushed a commit to joshnuss/turborepo that referenced this pull request Feb 15, 2025
### Description

TSIA

We were requiring the version to exist in `VersionOnly` schema so we
could decide which config schema to use.

I'm assuming I broke this in
vercel#9883, but it's not immediately
obvious to me how.

### Testing Instructions

Added failing unit test for versionless `Config::load_from_dir` call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants