Skip to content

Dont duplicate the stack#54

Merged
martypitt merged 3 commits intomainfrom
dont-duplicate-the-stack
Aug 26, 2025
Merged

Dont duplicate the stack#54
martypitt merged 3 commits intomainfrom
dont-duplicate-the-stack

Conversation

@martypitt
Copy link
Contributor

When running in a cluster, we see the stack get duplicated when receiving multiple submissions.

This attempts to address this, by only updating the stack if the submitted stack is different

martypitt and others added 2 commits August 26, 2025 05:25
Creates comprehensive guide covering build commands, architecture overview,
and development patterns for the Nebula Kotlin DSL project.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
… stack if present and the same.

Improves experience when running with a cluster of orbital servers
@martypitt martypitt requested a review from Copilot August 26, 2025 05:13
@netlify
Copy link

netlify bot commented Aug 26, 2025

Deploy Preview for orbital-nebula canceled.

Name Link
🔨 Latest commit 1c72c9b
🔍 Latest deploy log https://app.netlify.com/projects/orbital-nebula/deploys/68ad42c7017adf000800a147

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses stack duplication issues in clustered environments by implementing source-based deduplication. When multiple submissions of the same stack are received, the system now compares the source content and reuses existing stacks instead of duplicating them.

Key changes:

  • Introduces NebulaStackWithSource wrapper to track stack source content
  • Updates stack submission logic to compare source strings for deduplication
  • Modifies API endpoints and internal methods to use the new wrapper type

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
NebulaStack.kt Adds NebulaStackWithSource data class to wrap stacks with their source content
NebulaScriptExecutor.kt Adds toStackWithSource() method and deprecates toStack()
StackRunner.kt Updates submission logic to compare source content and avoid duplicates
NebulaServer.kt Modifies HTTP endpoints to use new stack-with-source methods
NebulaCli.kt Updates CLI to create stacks with source content
CLAUDE.md Adds new documentation file for development guidance

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@martypitt martypitt merged commit 12f5704 into main Aug 26, 2025
6 checks passed
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