Skip to content

fix: update hash logic to account for bundling#804

Merged
vigneshshanmugam merged 4 commits into
mainfrom
fix-hash-logic
Jul 26, 2023
Merged

fix: update hash logic to account for bundling#804
vigneshshanmugam merged 4 commits into
mainfrom
fix-hash-logic

Conversation

@shahzad31

@shahzad31 shahzad31 commented Jul 18, 2023

Copy link
Copy Markdown
Contributor

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 requested review from awahab07 and devcorpio July 18, 2023 10:21
@shahzad31 shahzad31 marked this pull request as ready for review July 18, 2023 10:21

@vigneshshanmugam vigneshshanmugam left a comment

Copy link
Copy Markdown
Member

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.

@vigneshshanmugam vigneshshanmugam left a comment

Copy link
Copy Markdown
Member

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