Skip to content

fix(worker): use deterministic volume naming for workflow execution#270

Merged
LuD1161 merged 1 commit intomainfrom
fix/deterministic-volume-naming
Feb 7, 2026
Merged

fix(worker): use deterministic volume naming for workflow execution#270
LuD1161 merged 1 commit intomainfrom
fix/deterministic-volume-naming

Conversation

@LuD1161
Copy link
Contributor

@LuD1161 LuD1161 commented Feb 7, 2026

Summary

  • Replace timestamp-based volume naming with deterministic names derived from tenantId and runId
  • Add static deriveVolumeName() method to IsolatedContainerVolume so downstream components (scanners) can reference volumes created by upstream components (clone-repo) in the same workflow execution without passing volume names through the graph
  • Since runId is unique per workflow execution, timestamps are no longer needed to prevent collisions

Test plan

  • Run a workflow that clones a repo and runs a scanner — verify the scanner mounts the same volume created by clone-repo
  • Verify IsolatedContainerVolume.deriveVolumeName(tenantId, runId) returns consistent names

Replace timestamp-based volume naming with deterministic names derived
from tenantId and runId. This allows downstream components (scanners)
to reference volumes created by upstream components (clone-repo) in the
same workflow execution without passing volume names through the graph.

Add static deriveVolumeName() method so any component can compute the
expected volume name from context.

Signed-off-by: Aseem Shrey <LuD1161@users.noreply.github.com>
@LuD1161 LuD1161 merged commit f8827e6 into main Feb 7, 2026
3 checks passed
@LuD1161 LuD1161 deleted the fix/deterministic-volume-naming branch February 7, 2026 20:16
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66619c7bd1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

1 participant