Skip to content

Fixed immutable folder failing with DMS or top level permissions - #7001

Open
andrewnester wants to merge 3 commits into
mainfrom
fix/immutable-file-path
Open

andrewnester wants to merge 3 commits into
mainfrom
fix/immutable-file-path

Conversation

@andrewnester

@andrewnester andrewnester commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Fixed experimental.immutable_folder failing with experimental.deployment_history ("workspace_info.file_path must be an absolute workspace path") and failing bundle validate when top-level permissions are set.

Why

These paths are resolved later during the deployment phase and hence were not correct
Fixes #6960

Tests

Added acceptance tests

@andrewnester
andrewnester requested review from a team as code owners October 9, 2026 10:24
@github-actions github-actions Bot added the DABs DABs related issues label Oct 9, 2026
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 9200508

Run: 37924876871

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 276 20 4:09
✅​ aws-windows-latest-4core-16gb 278 18 4:24
✅​ azure linux-2core-8gb 275 20 4:13
✅​ azure-windows-latest-4core-16gb 277 18 4:14
✅​ gcp linux-2core-8gb 276 20 4:08
✅​ gcp-windows-latest-4core-16gb 278 18 3:40
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:21 aws-windows-latest-4core-16gb TestAccept
4:12 azure-windows-latest-4core-16gb TestAccept
3:38 gcp-windows-latest-4core-16gb TestAccept

Comment thread bundle/phases/dms.go

// immutableSnapshotPath returns the workspace path of the immutable folder snapshot. The
// snapshot is not uploaded yet at this point, but its content-addressed path is already known.
func immutableSnapshotPath(b *bundle.Bundle) (string, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems a bit weird to read it from state here? Is this something we can store and read from the *bundle.Bundle object instead?

]

# The snapshot path is content-addressed.
[[Repls]]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if the hash is deterministic, should we consider removing this repl? Helps assert the metadata being recorded is indeed the right path.

If this causes issues across operating systems, we can limit this test to just linux. WDYT?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation Failing withexperimental.immutable_folder: true Despite Plan and Deploy Succeeding

3 participants