Skip to content

chore: merge codeql checks to run in parallel #5907

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 15 commits into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix gpg key test
  • Loading branch information
kylecarbs committed Jan 29, 2023
commit 09ac2ba0f094b4abd5b9e46008a83a91818a367c
9 changes: 6 additions & 3 deletions cli/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,10 @@ func runRemoteSSH(sshClient *gossh.Client, stdin io.Reader, cmd string) ([]byte,

stderr := bytes.NewBuffer(nil)
sess.Stdin = stdin
sess.Stderr = stderr

out, err := sess.Output(cmd)
// On fish, this was outputting to stderr instead of stdout.
// The tests pass differently on different Linux machines,
// so it's best we capture the output of both.
out, err := sess.CombinedOutput(cmd)
if err != nil {
return out, xerrors.Errorf(
"`%s` failed: stderr: %s\n\nstdout: %s:\n\n%w",
Expand Down Expand Up @@ -470,6 +471,8 @@ fi

test ! -S "$agent_socket"
`)
fmt.Printf("Agent bytes %s\n", agentSocketBytes)

agentSocket := strings.TrimSpace(string(agentSocketBytes))
if err != nil {
return xerrors.Errorf("check if agent socket is running (check if %q exists): %w", agentSocket, err)
Expand Down
3 changes: 2 additions & 1 deletion cli/testdata/coder_templates_create_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Flags:
--default-ttl duration Specify a default TTL for workspaces created from this
template. (default 24h0m0s)
-d, --directory string Specify the directory to create from, use '-' to read
tar from stdin (default "/tmp/coder-cli-test-workdir")
tar from stdin (default
"/tmp/coder-cli-test-workdir")
-h, --help help for create
--parameter-file string Specify a file path with parameter values.
--provisioner-tag stringArray Specify a set of tags to target provisioner daemons.
Expand Down
3 changes: 2 additions & 1 deletion cli/testdata/coder_templates_push_--help.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Flags:
--always-prompt Always prompt all parameters. Does not pull parameter
values from active template version
-d, --directory string Specify the directory to create from, use '-' to read
tar from stdin (default "/tmp/coder-cli-test-workdir")
tar from stdin (default
"/tmp/coder-cli-test-workdir")
-h, --help help for push
--name string Specify a name for the new template version. It will be
automatically generated if not provided.
Expand Down