Repository navigation
fix(mcpx): describe artifact copies accurately (#3064) #3721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e2ae9be
fix(mcpx): align artifact text with copy behavior (#3064)
dezren39 06c2421
Merge remote-tracking branch 'origin/main' into queue/5632-3064-align…
dezren39 cb88818
docs(mcpx): history fragment for the #3064 artifact copy-semantics prose
dezren39 a74c1cc
fix(mcpx): register artifact-copy change fragment in compendium manif…
dezren39 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| sections: delivery, the-script-api-is-the-same-everywhere, what-a-remote-endpoint-is-not | ||
| kind: Changed | ||
| summary: artifact delivery prose aligned with the implemented copy semantics (#3064): the exec and remote docs no longer promise hardlink delivery or zero-copy cost where the artifacts package copies bytes; the #1660 stored-blob guarantee (in-place edits to outside files cannot mutate stored bytes) is unchanged | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| package artifacts_test | ||
|
|
||
| import ( | ||
| "os" | ||
| "path/filepath" | ||
| "strings" | ||
| "testing" | ||
| ) | ||
|
|
||
| // TestDeliveryClaimsMatchCopyImplementation keeps user-facing and generated | ||
| // artifact text aligned with the store. If artifact delivery gains an actual | ||
| // os.Link path, the wording can be reviewed alongside that implementation. | ||
| func TestDeliveryClaimsMatchCopyImplementation(t *testing.T) { | ||
| implementation, err := os.ReadFile("artifacts.go") | ||
| if err != nil { | ||
| t.Fatal(err) | ||
| } | ||
| if strings.Contains(string(implementation), "os.Link(") || strings.Contains(string(implementation), "os.Linkname") { | ||
| return | ||
| } | ||
|
|
||
| files := []string{ | ||
| "internal/artifacts/artifacts.go", | ||
| "internal/api/ops_exec.go", | ||
| "internal/settings/exec.go", | ||
| "internal/execsvc/execsvc.go", | ||
| "internal/daemon/routes_exec.go", | ||
| "internal/cli/exec.go", | ||
| "internal/cli/commands.go", | ||
| "internal/codegen/emit.go", | ||
| "internal/e2e/exec_test.go", | ||
| "docs/exec.md", | ||
| "docs/remote.md", | ||
| "docs/home-example/client.ts", | ||
| "docs/home-example/client.browser.js", | ||
| } | ||
| for _, name := range files { | ||
| path := filepath.Join("..", "..", filepath.FromSlash(name)) | ||
| contents, err := os.ReadFile(path) | ||
| if err != nil { | ||
| t.Errorf("read %s: %v", name, err) | ||
| continue | ||
| } | ||
| text := strings.ToLower(string(contents)) | ||
| text = strings.ReplaceAll(text, "hard-linked", "hardlinked") | ||
| text = strings.ReplaceAll(text, "hard-link", "hardlink") | ||
| text = strings.ReplaceAll(text, "hard link", "hardlink") | ||
| if strings.Contains(text, "hardlink") || strings.Contains(text, "costs an inode") || strings.Contains(text, "inode rather than a copy") { | ||
| t.Errorf("%s still promises hardlink delivery without an os.Link path in artifacts", name) | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.