-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log warnings to stderr for "bundle validate -o json" (#2109)
## Changes Previously diagnostics were not seen in JSON output mode. This change prints them to stderr. This also fixes acceptance tests to preprocess all output with s/execPath/$CLI/ not just output.txt. ## Tests Existing acceptance tests. In one case I've added non-json command to check that they match in output.
- Loading branch information
Showing
6 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/override/job_tasks/out.development.stderr.txt
This file contains 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,6 @@ | ||
|
||
>>> errcode $CLI bundle validate -o json -t development | ||
Error: file ./test1.py not found | ||
|
||
|
||
Exit code: 1 |
This file contains 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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
|
||
>>> errcode $CLI bundle validate -o json -t development | ||
Error: file ./test1.py not found | ||
|
||
Exit code: 1 | ||
{ | ||
"name": "job", | ||
"queue": { | ||
|
@@ -36,6 +31,7 @@ Exit code: 1 | |
>>> errcode $CLI bundle validate -o json -t staging | ||
Error: file ./test1.py not found | ||
|
||
|
||
Exit code: 1 | ||
{ | ||
"name": "job", | ||
|
@@ -66,3 +62,16 @@ Exit code: 1 | |
} | ||
] | ||
} | ||
|
||
>>> errcode $CLI bundle validate -t staging | ||
Error: file ./test1.py not found | ||
|
||
Name: override_job_tasks | ||
Target: staging | ||
Workspace: | ||
User: [email protected] | ||
Path: /Workspace/Users/[email protected]/.bundle/override_job_tasks/staging | ||
|
||
Found 1 error | ||
|
||
Exit code: 1 |
This file contains 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
trace errcode $CLI bundle validate -o json -t development | jq .resources.jobs.foo | ||
trace errcode $CLI bundle validate -o json -t development 2> out.development.stderr.txt | jq .resources.jobs.foo | ||
trace errcode $CLI bundle validate -o json -t staging | jq .resources.jobs.foo | ||
trace errcode $CLI bundle validate -t staging |
This file contains 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 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