Skip to content

Improve the node package list updates#17704

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
hakman:update-packages
Oct 24, 2025
Merged

Improve the node package list updates#17704
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
hakman:update-packages

Conversation

@hakman
Copy link
Copy Markdown
Member

@hakman hakman commented Oct 24, 2025

Addressing code review comments from #17690.

/cc @justinsb @ameukam @rifelpet

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/nodeup labels Oct 24, 2025
@hakman
Copy link
Copy Markdown
Member Author

hakman commented Oct 24, 2025

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 24, 2025
@hakman
Copy link
Copy Markdown
Member Author

hakman commented Oct 24, 2025

/hold

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 24, 2025
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
@hakman
Copy link
Copy Markdown
Member Author

hakman commented Oct 24, 2025

/approve
/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 24, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 24, 2025
// If it is newer than 10 minutes, we skip apt-get update.
stat, err := os.Stat("/var/lib/dpkg/status")
// If the package manager update was less than 10 minutes ago, skip updating the package list.
if d.IsDebianFamily() && time.Since(packageManagerLastUpdated) > 10*time.Minute {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why 10 min ? I think apt update take less than 5 min to run.

Copy link
Copy Markdown
Member Author

@hakman hakman Oct 24, 2025

Choose a reason for hiding this comment

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

This is meant to run apt-get update every 10 min (arbitrary number). I expect bootstrap to finish much faster, but seems reasonable.

@hakman hakman requested a review from ameukam October 24, 2025 09:07
@ameukam
Copy link
Copy Markdown
Member

ameukam commented Oct 24, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 24, 2025
@hakman
Copy link
Copy Markdown
Member Author

hakman commented Oct 24, 2025

/override pull-kops-e2e-k8s-gce-cilium
Unrelated, test cleanup failure ^^^

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@hakman: Overrode contexts on behalf of hakman: pull-kops-e2e-k8s-gce-cilium

Details

In response to this:

/override pull-kops-e2e-k8s-gce-cilium
Unrelated, test cleanup failure ^^^

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot merged commit efbfdcf into kubernetes:master Oct 24, 2025
26 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.35 milestone Oct 24, 2025
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/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants