Skip to content

Remove unused isAggressive parameter#11935

Merged
knative-prow-robot merged 1 commit intoknative:mainfrom
julz:dont-be-aggressive
Sep 8, 2021
Merged

Remove unused isAggressive parameter#11935
knative-prow-robot merged 1 commit intoknative:mainfrom
julz:dont-be-aggressive

Conversation

@julz
Copy link
Copy Markdown
Contributor

@julz julz commented Sep 7, 2021

The isAggressive parameter in the health state server used to be used to determine whether to cache readiness forever after startup or not, but as of #11190 it's an unused parameter and the only thing that needs to know about periodSeconds=0 => spam readiness checks is the prober itself.

Also made probe.IsAggressive() private since it's no longer used externally, and renamed it for clarity.

This used to be used to determine whether to cache readiness forever
after startup or not, but now it's an unused parameter.

Also made isAggressive private since it's no longer used externally, and
renamed it for clarity.
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 7, 2021
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/autoscale area/networking labels Sep 7, 2021
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: julz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 7, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 7, 2021

Codecov Report

Merging #11935 (75c433b) into main (13ee889) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #11935      +/-   ##
==========================================
- Coverage   87.68%   87.64%   -0.04%     
==========================================
  Files         197      197              
  Lines        9508     9521      +13     
==========================================
+ Hits         8337     8345       +8     
- Misses        905      909       +4     
- Partials      266      267       +1     
Impacted Files Coverage Δ
cmd/queue/main.go 0.49% <0.00%> (ø)
pkg/queue/health/handler.go 100.00% <ø> (ø)
pkg/queue/readiness/probe.go 90.66% <100.00%> (ø)
pkg/reconciler/revision/resources/deploy.go 96.74% <0.00%> (-3.26%) ⬇️
pkg/autoscaler/scaling/multiscaler.go 87.27% <0.00%> (-1.82%) ⬇️
pkg/reconciler/revision/resources/queue.go 98.23% <0.00%> (-1.77%) ⬇️
pkg/autoscaler/metrics/stats_scraper.go 92.21% <0.00%> (+0.44%) ⬆️
pkg/autoscaler/statforwarder/processor.go 94.44% <0.00%> (+5.55%) ⬆️
pkg/autoscaler/statforwarder/forwarder.go 96.29% <0.00%> (+5.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13ee889...75c433b. Read the comment docs.

@psschwei
Copy link
Copy Markdown
Member

psschwei commented Sep 7, 2021

/lgtm
There's several tests that are erroring with a "There are no nodes that your pod can schedule to - check your requests, tolerations, and node selectors" message. There were some posts in Slack about those failures, but not sure I saw a resolution. Will hold just in case, but feel free to remove if I'm being overcautious.
/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 7, 2021
@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2021
@julz
Copy link
Copy Markdown
Contributor Author

julz commented Sep 7, 2021

@psschwei guess the cluster was out of resources, let’s try retesting:

/retest

@julz
Copy link
Copy Markdown
Contributor Author

julz commented Sep 8, 2021

/retest

@julz
Copy link
Copy Markdown
Contributor Author

julz commented Sep 8, 2021

flaky test which we disabled now in #11945

/retest

@julz
Copy link
Copy Markdown
Contributor Author

julz commented Sep 8, 2021

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 8, 2021
@psschwei
Copy link
Copy Markdown
Member

psschwei commented Sep 8, 2021

/retest

@knative-prow-robot knative-prow-robot merged commit e1df9b5 into knative:main Sep 8, 2021
salaboy pushed a commit to salaboy/serving that referenced this pull request Sep 13, 2021
This used to be used to determine whether to cache readiness forever
after startup or not, but now it's an unused parameter.

Also made isAggressive private since it's no longer used externally, and
renamed it for clarity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/autoscale area/networking cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants