| { |
| "commit": "16dc78314517faabab8283dfa76aaef445e3c62e", |
| "parent": "ccf49b8eb56832c6f83cd39e28959e65bafe3521", |
| "repository_id": "R002", |
| "schema_version": 1, |
| "task_id": "TASK_S2_R002_012", |
| "valid_end_to_end": true, |
| "validation": { |
| "commands": [ |
| "go test ./internal/commands/stack/save -count=1" |
| ], |
| "elapsed_seconds": 12.541083666030318, |
| "gold": [ |
| { |
| "command": "go test ./internal/commands/stack/save -count=1", |
| "elapsed_seconds": 4.080337542109191, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "ok \tgitlab.com/gitlab-org/cli/internal/commands/stack/save\t3.685s\n", |
| "timed_out": false |
| } |
| ], |
| "hidden": [ |
| { |
| "command": "go test ./internal/commands/stack/save -count=1", |
| "elapsed_seconds": 4.0433505000546575, |
| "returncode": 1, |
| "stderr": "", |
| "stdout": "\n -m, --message string Alias for the description flag.\n\nAmend commit: [mandeepsidhu-cool-test-feature-ff8a5ce9 13d0a8b] amended description\n Date: Sat Jul 18 20:57:44 2026 -0400\n 1 file changed, 0 insertions(+), 0 deletions(-)\n create mode 100644 testfile\n\nError: could not run stack amend: could not save: no changes to save\nUsage:\n amend [flags]\n\nExamples:\n# Amend diff with currently staged changes\nglab stack amend -m \"Fix a function\"\n\n# Add specified file to staged changes and amend diff\nglab stack amend newfile -m \"forgot to add this\"\n\n# Add all tracked files to staged changes and amend diff\nglab stack amend -a -m \"fixed a function in exisiting file\"\n\n# Add all tracked and untracked files to staged changes and amend diff\nglab stack amend . -m \"refactored file into new files\"\n\nFlags:\n -a, --all Automatically stage modified and deleted tracked files.\n -d, --description string A description of the change.\n -h, --help help for amend\n -m, --message string Alias for the description flag.\n\nError: could not run stack amend: error checking for stack: Could not find stack ref for branch: randobranch\nUsage:\n amend [flags]\n\nExamples:\n# Amend diff with currently staged changes\nglab stack amend -m \"Fix a function\"\n\n# Add specified file to staged changes and amend diff\nglab stack amend newfile -m \"forgot to add this\"\n\n# Add all tracked files to staged changes and amend diff\nglab stack amend -a -m \"fixed a function in exisiting file\"\n\n# Add all tracked and untracked files to staged changes and amend diff\nglab stack amend . -m \"refactored file into new files\"\n\nFlags:\n -a, --all Automatically stage modified and deleted tracked files.\n -d, --description string A description of the change.\n -h, --help help for amend\n -m, --message string Alias for the description flag.\n\n--- FAIL: Test_stackAmendCmd (0.87s)\n --- FAIL: Test_stackAmendCmd/amending_regular_files_with_--no-verify (0.14s)\n stack_amend_test.go:126: \n \tError Trace:\t/private/var/folders/mv/1101q6r16619mvm7kc7f3lt80000gn/T/study2-r002-0c2qs0ga/tree/internal/commands/stack/save/stack_amend_test.go:126\n \tError: \tReceived unexpected error:\n \t \tunknown flag: --no-verify\n \tTest: \tTest_stackAmendCmd/amending_regular_files_with_--no-verify\nError: error adding files: no staged changes. Stage files manually with 'git add', use -a flag to automatically stage tracked files, or specify files explicitly\nUsage:\n save [flags]\n\nExamples:\n# Save currently staged changes as diff with description\nglab stack save -m \"added a function\"\n\n# Add specified file to staged changes and save diff\nglab stack save added_file\n\n# Add all tracked files to staged changes and save diff\nglab stack save -a -m \"added a function to exisiting file\"\n\n# Add all tracked and untracked files to staged changes and save diff\nglab stack save . -m \"added new file\"\n\nFlags:\n -a, --all Automatically stage modified and deleted tracked files.\n -d, --description string Description of the change.\n -h, --help help for save\n -m, --message string Alias for the description flag.\n --no-verify Bypass the pre-commit and commit-msg hooks of git-commit(1).\n\nError: could not save: no changes to save\nUsage:\n save [flags]\n\nExamples:\n# Save currently staged changes as diff with description\nglab stack save -m \"added a function\"\n\n# Add specified file to staged changes and save diff\nglab stack save added_file\n\n# Add all tracked files to staged changes and save diff\nglab stack save -a -m \"added a function to exisiting file\"\n\n# Add all tracked and untracked files to staged changes and save diff\nglab stack save . -m \"added new file\"\n\nFlags:\n -a, --all Automatically stage modified and deleted tracked files.\n -d, --description string Description of the change.\n -h, --help help for save\n -m, --message string Alias for the description flag.\n --no-verify Bypass the pre-commit and commit-msg hooks of git-commit(1).\n\nError: error getting commit message: no commit message provided and no TTY; provide one with the --message flag\nUsage:\n save [flags]\n\nExamples:\n# Save currently staged changes as diff with description\nglab stack save -m \"added a function\"\n\n# Add specified file to staged changes and save diff\nglab stack save added_file\n\n# Add all tracked files to staged changes and save diff\nglab stack save -a -m \"added a function to exisiting file\"\n\n# Add all tracked and untracked files to staged changes and save diff\nglab stack save . -m \"added new file\"\n\nFlags:\n -a, --all Automatically stage modified and deleted tracked files.\n -d, --description string Description of the change.\n -h, --help help for save\n -m, --message string Alias for the description flag.\n --no-verify Bypass the pre-commit and commit-msg hooks of git-commit(1).\n\nError: error adding files: no staged changes after 'git add --update'. Are there any tracked modified files?\nUsage:\n save [flags]\n\nExamples:\n# Save currently staged changes as diff with description\nglab stack save -m \"added a function\"\n\n# Add specified file to staged changes and save diff\nglab stack save added_file\n\n# Add all tracked files to staged changes and save diff\nglab stack save -a -m \"added a function to exisiting file\"\n\n# Add all tracked and untracked files to staged changes and save diff\nglab stack save . -m \"added new file\"\n\nFlags:\n -a, --all Automatically stage modified and deleted tracked files.\n -d, --description string Description of the change.\n -h, --help help for save\n -m, --message string Alias for the description flag.\n --no-verify Bypass the pre-commit and commit-msg hooks of git-commit(1).\n\nFAIL\nFAIL\tgitlab.com/gitlab-org/cli/internal/commands/stack/save\t3.631s\nFAIL\n", |
| "timed_out": false |
| } |
| ], |
| "hidden_apply": { |
| "elapsed_seconds": 0.008766292128711939, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "" |
| }, |
| "original": [ |
| { |
| "command": "go test ./internal/commands/stack/save -count=1", |
| "elapsed_seconds": 4.248265625210479, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "ok \tgitlab.com/gitlab-org/cli/internal/commands/stack/save\t3.512s\n", |
| "timed_out": false |
| } |
| ], |
| "reason": null, |
| "source_apply": { |
| "elapsed_seconds": 0.009321375051513314, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "" |
| }, |
| "valid": true |
| } |
| } |
|
|