Skip to content

Fix runner status log reporting - #731

Merged
0x2b3bfa0 merged 2 commits into
masterfrom
fix-release-bugs
Sep 22, 2021
Merged

0x2b3bfa0 merged 2 commits into
masterfrom
fix-release-bugs

Conversation

@0x2b3bfa0

Copy link
Copy Markdown
Member

Missing the blunder label

@0x2b3bfa0 0x2b3bfa0 added bug Something isn't working p0-critical Max priority (ASAP) labels Sep 22, 2021
@0x2b3bfa0 0x2b3bfa0 self-assigned this Sep 22, 2021
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 22, 2021 09:36 Inactive
Comment thread bin/cml/runner.js Resolved
@0x2b3bfa0
0x2b3bfa0 temporarily deployed to internal September 22, 2021 09:38 Inactive

@DavidGOrtega DavidGOrtega left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 lgtm

@0x2b3bfa0
0x2b3bfa0 merged commit 30d754c into master Sep 22, 2021
@0x2b3bfa0
0x2b3bfa0 deleted the fix-release-bugs branch September 22, 2021 09:40
@0x2b3bfa0

Copy link
Copy Markdown
Member Author

Explanation

Winston, the logging library introduced with #703, only outputs plain text on interactive environments. When the standard output is not a TTY, it will output plain JSONL logs instead.

cml/bin/cml.js

Lines 12 to 17 in 7d664ae

format: process.stdout.isTTY
? winston.format.combine(
winston.format.colorize({ all: true }),
winston.format.simple()
)
: winston.format.json(),

The provided winston.debug call was outputting the JSON object as an escaped JSON string embedded in another object, thus causing the Terraform provider to time out waiting for the readiness signal, which was unable to parse.


Not a proper report, but enough to cover the causes. I still have lots of things to do today. 🏃🏼 😅

@casperdcl

Copy link
Copy Markdown
Contributor

yup

xkcd#844

@0x2b3bfa0

Copy link
Copy Markdown
Member Author

Cough, cough. Actually, that wasn't supposed to be winston.debug but a plain console.log in the first place; see 8de7c23

@casperdcl

Copy link
Copy Markdown
Contributor

✈️

This branch was previously deployed

1 inactive deployment
internal — 68aa2322 Deployed Sep 22, 2021 by 0x2b3bfa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working p0-critical Max priority (ASAP)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert remaining console.log and console.error calls to logger calls

3 participants