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: update hash logic to account for bundling #804

Merged
merged 4 commits into from
Jul 26, 2023
Merged

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Jul 18, 2023

fixes #802

update hash logic to account for bundling.

Earlier it was doing difference based on hash calculated before bundling, in updated logic diff will be done after hash calculated based on content of bundle.

@shahzad31 shahzad31 marked this pull request as ready for review July 18, 2023 10:21
Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

There is a risk with this approach, Making the hash based on the bundle would be problematic in few scenarios

  • If any of the journey changes in a single file, then all journeys are affected
  • Bundling code gets affected with esbuild library changes.

In any case, we need to fix this issue as its not the right behaviour, but lets think through other approaches and decide.

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

LGTM

We will proceed with this approach for now to fix the bug and work on a efficient way to bundle the journeys with the approach discussed here -#809

@vigneshshanmugam vigneshshanmugam merged commit 2262f13 into main Jul 26, 2023
8 checks passed
@vigneshshanmugam vigneshshanmugam deleted the fix-hash-logic branch July 26, 2023 15:32
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.

Synthetics push command doesn't detect changes in imported files
2 participants