Skip to content

fix(project): include trigger reply fields in version hash#1362

Merged
josephjclark merged 1 commit intoOpenFn:release/nextfrom
officialasishkumar:fix/version-hash-trigger-keys
Apr 14, 2026
Merged

fix(project): include trigger reply fields in version hash#1362
josephjclark merged 1 commit intoOpenFn:release/nextfrom
officialasishkumar:fix/version-hash-trigger-keys

Conversation

@officialasishkumar
Copy link
Copy Markdown
Contributor

@officialasishkumar officialasishkumar commented Apr 9, 2026

Description

This keeps the project-side workflow version hash aligned with Lightning by including webhook_reply and cron_cursor_job_id in the trigger field list used by generateHash().

Without this, the CLI can compute a different hash from Lightning for the same workflow after those trigger fields change.

Changes

  • include webhook_reply and cron_cursor_job_id in packages/project/src/util/version.ts
  • add regression tests covering both trigger fields in packages/project/test/util/version-workflow.test.ts
  • add a changeset so the fix is released through the monorepo flow

Companion to OpenFn/lightning#4599.

AI Usage

Used only for research.

Copy link
Copy Markdown
Collaborator

@josephjclark josephjclark left a comment

Choose a reason for hiding this comment

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

Thank you @officialasishkumar! This is cool. Just a couple of tidy ups before I can merge it

Comment thread .changeset/quiet-seals-battle.md Outdated
Comment thread packages/project/test/util/version-workflow.test.ts Outdated
`@name wf-1
@id workflow-id
t(type=cron,cron_expression="1")-a
a-b
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You shouldn't need the a-b nodes here at all right? Better to clean that up and keep the tests simple

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed the extra nodes and kept the test minimal in f021d98.

Comment thread packages/project/test/util/version-workflow.test.ts Outdated
@josephjclark
Copy link
Copy Markdown
Collaborator

Oh and @officialasishkumar we like contributors to disclose AI usage in some way so that everyone knows where we stand. We have a checkbox for this in the PR template. Can you update the PR description to at least say "I have used AI to generate this PR"?

I've updated the PR description to remove the weird validation stuff. It's enough in this case that tests are passing in CI

@officialasishkumar
Copy link
Copy Markdown
Contributor Author

Hi @josephjclark , yes, i have used AI in research and understanding the codebase

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@officialasishkumar officialasishkumar force-pushed the fix/version-hash-trigger-keys branch from 242e36c to f021d98 Compare April 10, 2026 14:06
@josephjclark josephjclark changed the base branch from main to release/next April 14, 2026 16:24
Copy link
Copy Markdown
Collaborator

@josephjclark josephjclark left a comment

Choose a reason for hiding this comment

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

Thanks @officialasishkumar 🙏

@josephjclark josephjclark merged commit b2e7b98 into OpenFn:release/next Apr 14, 2026
7 checks passed
josephjclark added a commit that referenced this pull request Apr 14, 2026
* engine: Set max-old-space-size on child process

#1368

---------

Co-authored-by: Joe Clark <jclark@openfn.org>

* fix(project): include trigger reply fields in version hash (#1362)

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>

* fix state growth (#1371)

* versions

---------

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
Co-authored-by: Taylor Downs <taylor@openfn.org>
Co-authored-by: Asish Kumar <87874775+officialasishkumar@users.noreply.github.com>
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