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

Allow bootstrap to use default remote branch #20672

Closed
spiffxp opened this issue Jan 29, 2021 · 16 comments
Closed

Allow bootstrap to use default remote branch #20672

spiffxp opened this issue Jan 29, 2021 · 16 comments
Labels
area/bootstrap area/jobs kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. sig/release Categorizes an issue or PR as relevant to SIG Release. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Milestone

Comments

@spiffxp
Copy link
Member

spiffxp commented Jan 29, 2021

I'm on the fence about whether we should do this, since we consider bootstrap to be migrated.

Many bootstrap jobs use --repo=org_name/repo_name=master when what they really mean is "use the remote's default branch"

$ ag \\-\\-repo= | grep =master | wc -l
      98

Unfortunately --repo=org_name/repo_name will default to master rather than detecting the default branch

$ ag \\-\\-repo= | grep -v master | grep -v PULL_REFS | grep -v =release | wc -l
     100

We need to either:

/sig testing
/area jobs
/area bootstrap
/sig release
(a lot of the latter case is for k8s.io/release)
/wg naming
since this is in support of kubernetes/org#2222

@k8s-ci-robot k8s-ci-robot added sig/testing Categorizes an issue or PR as relevant to SIG Testing. area/jobs area/bootstrap sig/release Categorizes an issue or PR as relevant to SIG Release. wg/naming Categorizes an issue or PR as relevant to WG Naming. labels Jan 29, 2021
@BenTheElder
Copy link
Member

if the patch is relatively small, the utility of unblocking this migration is higher than gating it on migrating off of bootstrap

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 6, 2021
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 6, 2021
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-contributor-experience at kubernetes/community.
/close

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/test-infra repository.

@spiffxp
Copy link
Member Author

spiffxp commented Jul 6, 2021

/reopen
/remove-lifecycle rotten

An update on where we're at since this issue was first opened.

In the past ~6 months:

  • the number of jobs referencing master explicitly has gone down from 98 to 32
  • the number of jobs referencing no branch (and thus get master implicitly) has gone down from 102 to 90

At this point I'm ambivalent about whether it would be better to:

  • modify bootstrap to support "no branch == default branch"
  • explicitly regex =master to everything using bootstrap's --repo=org/repo syntax, to make it extra clear what needs to be regex'ed in lock step
$ git checkout $(git rev-list -n 1 --first-parent --before=2021-01-29 master)
$ rg \\-\\-repo= config/jobs | grep =master | wc -l
      98
$ rg \\-\\-repo= config/jobs | grep -vE 'master|PULL_REFS|=(release|main)' | wc -l
      102

$ git checkout master
$ rg \\-\\-repo= config/jobs | grep =master | wc -l
      32
$ rg \\-\\-repo= config/jobs | grep -vE 'master|PULL_REFS|=(release|main)' | wc -l
      90

@k8s-ci-robot k8s-ci-robot reopened this Jul 6, 2021
@k8s-ci-robot
Copy link
Contributor

@spiffxp: Reopened this issue.

In response to this:

/reopen
/remove-lifecycle rotten

An update on where we're at since this issue was first opened.

In the past ~6 months:

  • the number of jobs referencing master explicitly has gone down from 98 to 32
  • the number of jobs referencing no branch (and thus get master implicitly) has gone down from 102 to 90

At this point I'm ambivalent about whether it would be better to:

  • modify bootstrap to support "no branch == default branch"
  • explicitly regex =master to everything using bootstrap's --repo=org/repo syntax, to make it extra clear what needs to be regex'ed in lock step
$ git checkout $(git rev-list -n 1 --first-parent --before=2021-01-29 master)
$ rg \\-\\-repo= config/jobs | grep =master | wc -l
     98
$ rg \\-\\-repo= config/jobs | grep -vE 'master|PULL_REFS|=(release|main)' | wc -l
     102

$ git checkout master
$ rg \\-\\-repo= config/jobs | grep =master | wc -l
     32
$ rg \\-\\-repo= config/jobs | grep -vE 'master|PULL_REFS|=(release|main)' | wc -l
     90

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Jul 6, 2021
@spiffxp
Copy link
Member Author

spiffxp commented Jul 13, 2021

/milestone v1.23

@k8s-ci-robot k8s-ci-robot added this to the v1.23 milestone Jul 13, 2021
@spiffxp
Copy link
Member Author

spiffxp commented Nov 24, 2021

/milestone v1.24

@k8s-ci-robot k8s-ci-robot modified the milestones: v1.23, v1.24 Nov 24, 2021
@spiffxp
Copy link
Member Author

spiffxp commented Nov 24, 2021

/priority important-longterm

@k8s-ci-robot k8s-ci-robot added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Nov 24, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 22, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 24, 2022
@BenTheElder BenTheElder added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. wg/naming Categorizes an issue or PR as relevant to WG Naming. labels Apr 19, 2022
@BenTheElder BenTheElder modified the milestones: v1.24, someday Apr 19, 2022
@BenTheElder
Copy link
Member

I bias towards energy on bootstrap -> podutils instead, I'm not sure we should reduce friction on bootstrap.py, it's really too bad we're still using this thing.

@BenTheElder
Copy link
Member

We're going to focus on eliminating bootstrap instead since it is long deprecated and poorly integrated into prow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap area/jobs kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. sig/release Categorizes an issue or PR as relevant to SIG Release. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
Development

No branches or pull requests

5 participants