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: cache edge function dependency tracing #6440

Merged
merged 2 commits into from Mar 15, 2024
Merged

Conversation

eduardoboucas
Copy link
Member

Summary

In #6276, we have started to trace transitive dependencies of edge function files for the purpose of hot reloading. This has introduced a regression where, for non-trivial dependency trees, we'll get into an infinite loop trying to recursively trace the dependencies of interdependent files.

This PR addresses that by ensuring we don't trace the same file twice.

Fixes COM-506.

@eduardoboucas eduardoboucas requested a review from a team as a code owner March 14, 2024 13:40
@eduardoboucas eduardoboucas requested review from JGAntunes and Skn0tt and removed request for a team March 14, 2024 13:40
Copy link

github-actions bot commented Mar 14, 2024

📊 Benchmark results

Comparing with 10965ab

  • Dependency count: 1,326 (no change)
  • Package size: 298 MB (no change)
  • Number of ts-expect-error directives: 1,120 (no change)

Copy link
Collaborator

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

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

LGTM!

@eduardoboucas eduardoboucas merged commit a2917d2 into main Mar 15, 2024
40 checks passed
@eduardoboucas eduardoboucas deleted the fix/ef-dependency-loop branch March 15, 2024 10:33
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.

None yet

2 participants