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

Revert "http: use Keep-Alive by default in global agents" #43636

Closed
wants to merge 1 commit into from

Conversation

F3n67u
Copy link
Member

@F3n67u F3n67u commented Jun 30, 2022

This reverts commit 4267b92.

Fix #43623

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/http
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http Issues or PRs related to the http subsystem. https Issues or PRs related to the https subsystem. needs-ci PRs that need a full CI run. labels Jun 30, 2022
@ShogunPanda
Copy link
Contributor

Why do you want to revert that?

@F3n67u
Copy link
Member Author

F3n67u commented Jul 1, 2022

Why do you want to revert that?

@ShogunPanda try to fix #43623 (comment)

@ShogunPanda
Copy link
Contributor

Don't revert that, it is needed.
I'll briefly send a PR to fix the failing test.

@F3n67u
Copy link
Member Author

F3n67u commented Jul 1, 2022

Don't revert that, it is needed.
I'll briefly send a PR to fix the failing test.

Thanks.

@F3n67u F3n67u closed this Jul 1, 2022
@F3n67u F3n67u reopened this Jul 1, 2022
@F3n67u F3n67u marked this pull request as ready for review July 1, 2022 13:23
@F3n67u
Copy link
Member Author

F3n67u commented Jul 1, 2022

#43522 also causes test-gc-http-client-timeout to fail, so I reopen this revert pr. Refs: #43638 (comment)

@F3n67u F3n67u added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 1, 2022
@ShogunPanda
Copy link
Contributor

See: #43641 (comment)

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 1, 2022
@nodejs-github-bot

This comment was marked as outdated.

@panva
Copy link
Member

panva commented Jul 1, 2022

I don't understand the urgency not to revert. It is semver major, not to be part of a release until october.

Revert it, reopen it with ci fixes, run it a bunch of times to be more confident no more flakyness was introduced, then land.

@nodejs-github-bot
Copy link
Collaborator

@ShogunPanda
Copy link
Contributor

I explained in my PR.
IMHO the new behavior exposed some problems in the tests that needs to be addressed. Reverting would hide them again so I would suggest to keep it and face problems as they arise.

As you pointed out, that was a semver-major so we're not blocking any release line I guess.

@tniessen
Copy link
Member

tniessen commented Jul 2, 2022

IMHO the new behavior exposed some problems in the tests that needs to be addressed.

@ShogunPanda Yes, but that should have been part of #43522. There were related test failures (in four out of five CI runs!), which appear to have been ignored, and the PR was merged despite these failures. Arguably, when a PR should not have been merged in the first place, reverting it is a good first step.

Reverting would hide them again so I would suggest to keep it and face problems as they arise.

In general, that is a good approach. In this case, however, the introduced CI failures are blocking others' work. PRs can't be merged because CIs keep failing. Even CI jobs that are usually reliable have been failing much more often.

For example, test-commit-linux worked pretty well (with the vast majority of builds succeeding) until three days ago:

test-commit-linux trend graph

Similar things can be said about linuxone etc.

CI failures mean that we might miss important errors (as appears to be the case in #43522) and they cost us time and resources.

As you pointed out, that was a semver-major so we're not blocking any release line I guess.

As @panva explained, the change isn't being released until node 19 anyway, so (most) users do not benefit from it being on the main branch. It's not blocking a release line, but it is blocking development on the main branch!

@ShogunPanda
Copy link
Contributor

Fine to me then. I can probably propose a combined version of #43522 and #43641.
What would be an indicator of green light in that case? CI passing at first run or what?

@tniessen
Copy link
Member

tniessen commented Jul 2, 2022

What would be an indicator of green light in that case? CI passing at first run or what?

No, that's not a requirement (and also does not always mean that no flakes are introduced). The important bit is looking at the actual errors when CI fails. Unfortunately, the degree of flakiness of our CI makes it tempting to just rerun/resume CI until it passes. test-stream-finished failed at least four times throughout multiple CI runs in #43522 and that test was not a known flake, so the failure should have been investigated.

@ShogunPanda
Copy link
Contributor

I see. Anyway, now that #43641 has been now merged, shall we wait few more days to see if the situation has improved?

@F3n67u
Copy link
Member Author

F3n67u commented Jul 24, 2022

Close this pr to in favor of #43949

@F3n67u F3n67u closed this Jul 24, 2022
@F3n67u F3n67u deleted the revert-keep-alive branch July 24, 2022 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem. https Issues or PRs related to the https subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate flaky test-stream-finished
5 participants