Skip to content

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
@github-actions
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
Contributor

@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
@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.

3 participants