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

Tests - Caching #67

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

AdrianRomanski
Copy link

No description provided.

@AdrianRomanski AdrianRomanski marked this pull request as ready for review December 12, 2024 16:29
Copy link
Contributor

@BioPhoton BioPhoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the PR! Left some comments.

testing/test-utils/src/lib/constants.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@BioPhoton BioPhoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvements!
Left some comments.

Also could you please resolve the comments if you feel they are addressed?
I can always reopen them if needed.

Copy link
Contributor

@BioPhoton BioPhoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still found some suggestions and consistency issues that where mentioned in earlier feedback. Maybe read through all files & feedback and check them before requesting a review?

projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
@AdrianRomanski
Copy link
Author

I have recheck every comment, and introduced consistency on every layer.
Furthermore optimize memory but deleting unnecessary variables.
Everything should be good now :D

Copy link
Contributor

@BioPhoton BioPhoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking for duplicate tests and using the right helpers everywhere. The changelog was still formatted. I mentioned that already, linked the old comment and elaborate again why it saves time to do a self review first.

After this small adjustments I think we can get it in! 🥳

.prettierignore Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -45,7 +41,7 @@ export function readTargetsCache(
export function writeTargetsToCache(
cachePath: string,
results: Record<string, Partial<ProjectConfiguration>>
) {
): void {
process.env.NX_CACHE_PROJECT_GRAPH !== 'false' &&
writeJsonFile(cachePath, results);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use writeJsonFileAsync instead of writeJsonFile to make the code non blocking.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BioPhoton What do you think about doing it in seperate pr?

projects/nx-verdaccio/src/plugin/caching.unit-test.ts Outdated Show resolved Hide resolved
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