diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 51d1930..ed76ecf 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -30,5 +30,5 @@ jobs: export TZ='America/Los_Angeles' # Force the time zone so that test output is consistent sudo chmod 0755 -R /usr/share/zsh/ || true # Work around a weird bug where zsh on ubuntu actiosn gives that diretory 0777 which makes zsh refuse to start sudo hostname ghaction-runner-hostname || true # Set a consistent hostname so we can run tests that depend on it - sudo scutil --set HostName ghaction-runner-hostname + sudo scutil --set HostName ghaction-runner-hostname || true make test diff --git a/client/lib/lib.go b/client/lib/lib.go index 6a17954..ff956d7 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -178,7 +178,8 @@ func buildCustomColumns(ctx *context.Context) (data.CustomColumns, error) { } err = cmd.Wait() if err != nil { - return nil, fmt.Errorf("failed to execute custom command named %v (stdout=%#v, stderr=%#v)", cc.ColumnName, stdout.String(), stderr.String()) + // Log a warning, but don't crash. This way commands can exit with a different status and still work. + hctx.GetLogger().Printf("failed to execute custom command named %v (stdout=%#v, stderr=%#v)", cc.ColumnName, stdout.String(), stderr.String()) } ccv := data.CustomColumn{ Name: cc.ColumnName,