Skip to content
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

metrics: log line with length if parsing fails in process cloudflare #3766

Closed
wants to merge 1 commit into from

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Jun 18, 2024

Refs: #3697 (comment)

$> node
Welcome to Node.js v20.14.0.
> line = ''
''
> console.log('ERROR PARSING: "' + line + '" of length ' + line.length)
ERROR PARSING: "" of length 0

@trivikr
Copy link
Member Author

trivikr commented Jun 18, 2024

cc @targos

@trivikr trivikr mentioned this pull request Jun 18, 2024
@trivikr trivikr changed the title ansible: log line with length if parsing fails metrics: log line with length if parsing fails in process cloudflare Jun 20, 2024
Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@trivikr
Copy link
Member Author

trivikr commented Jun 25, 2024

This PR is good to merge, and gcloud run deploy is successful

#3767 (comment)

@mhdawson
Copy link
Member

@trivikr does landing this result in it being deployed or is it just a reflection of what you deployed yourself?

Just want to understand the context of what it means to land the PR.

@trivikr
Copy link
Member Author

trivikr commented Jun 25, 2024

does landing this result in it being deployed

No, AFAIK. It doesn't appear to be like automation is set up for deploying updates in metrics processing, and it needs to be manually deployed.

We can discuss setting up automation using terraform/pulumi for example, after the download stats issue is debugged and fixed #3697.

I've been updating stuff as soon as I come across one. Here is an example flow:

I would like to make some other changes too if maintainers agree, like moving to Artifact Registry, updating dependencies, moving from express to fastify, adding unit tests with Node.js Test Runner, adding CI etc. But this can be done after downloads stats are fixed.

is it just a reflection of what you deployed yourself?

No. It's just a proposal from the PR author for making changes in metrics source code.
Once merged, following the project governance for approvals and 48/72 hours, the author (ideally) has to deploy it till automation is set up.

what it means to land the PR.

As of now, I think it currently means the Build WG accepts the proposal mentioned in the PR.

@trivikr
Copy link
Member Author

trivikr commented Jun 27, 2024

This change is no longer needed, since Unexpected end of JSON input is no longer thrown after merging and deploying #3765

@trivikr trivikr closed this Jun 27, 2024
@trivikr trivikr deleted the log-line-when-error-thrown branch June 27, 2024 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants