-
Notifications
You must be signed in to change notification settings - Fork 0
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
Set-up turbo repo and move towards ahead of time compiled files #100
base: main
Are you sure you want to change the base?
Conversation
This changes the v2/v3 test setup so that tests that are skipped for V3 run. A subsequent change will improve our logging to automatically diff the outputs of both versions in a single process. The idea here is to easily identify tests that are green but skipped, as well as get a grasp of current failures.
This allows us to run integration tests that fail without crashing the process.
Since we do not have cache invalidation properly set-up with the rust implementation. It's better to force it for now. This should, if our implementation is correct fix certain tests that depend on cache invalidation.
Since we do not have cache invalidation properly set-up with the rust implementation. It's better to force it for now. This should, if our implementation is correct fix certain tests that depend on cache invalidation.
@@ -361,7 +361,9 @@ impl ResolverPlugin for AtlaspackResolver { | |||
(atlaspack_resolver::Resolution::External, _query) => { | |||
if let Some(_source_path) = &ctx.dependency.source_path { | |||
if ctx.dependency.env.is_library && ctx.dependency.specifier_type != SpecifierType::Url { | |||
todo!("check excluded dependency for libraries"); | |||
return Err(anyhow::anyhow!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this meant to be here? Also a lot of the checks for this code path in the JS version seem a bit overkill to me 🤷
@@ -130,7 +130,7 @@ export default class Atlaspack { | |||
rustAtlaspack = new AtlaspackV3({ | |||
...options, | |||
corePath: path.join(__dirname, '..'), | |||
threads: process.env.NODE_ENV === 'test' ? 2 : undefined, | |||
threads: process.env.NODE_ENV === 'test' ? 0 : undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert?
@@ -11,10 +11,10 @@ import { | |||
} from '@atlaspack/test-utils'; | |||
import type {BundleGraph, BundleGroup, PackagedBundle} from '@atlaspack/types'; | |||
|
|||
describe.v2('BundleGraph', () => { | |||
describe('BundleGraph', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these test changes should be in a separate PR to reduce noise, including the join /
removal
Required for #99