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

run presubmits with pull-request created image #2029

Merged
merged 3 commits into from
Mar 24, 2023

Conversation

aojea
Copy link
Member

@aojea aojea commented Mar 21, 2023

See if we can detect problems before merging

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 21, 2023
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 21, 2023
@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/hold
/test pull-ingress-gce-e2e

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Mar 21, 2023
@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/hold cancel

@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 Mar 21, 2023
@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/assign @gauravkghildiyal

LGTM to get the presubmit job working, so we can keep debugging the problem, right now is failing with

 Mar 21 16:51:20.857: INFO: Retrieving UID from config map: kube-system/ingress-uid
  Mar 21 16:51:20.900: INFO: Unexpected error: 
      <*errors.StatusError | 0xc0002bf900>: 
      configmaps "ingress-uid" not found
      {
          ErrStatus: 
              code: 404
              details:
                kind: configmaps
                name: ingress-uid
              message: configmaps "ingress-uid" not found
              metadata: {}
              reason: NotFound
              status: Failure,
      }
  [FAILED] in [BeforeEach] - test/e2e/network/ingress.go:100 @ 03/21/23 16:51:20.9
  Mar 21 16:51:20.900: INF

@k8s-ci-robot
Copy link
Contributor

@aojea: GitHub didn't allow me to assign the following users: gauravkghildiyal.

Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @gauravkghildiyal

LGTM to get the presubmit job working, so we can keep debugging the problem, right now is failing with

Mar 21 16:51:20.857: INFO: Retrieving UID from config map: kube-system/ingress-uid
 Mar 21 16:51:20.900: INFO: Unexpected error: 
     <*errors.StatusError | 0xc0002bf900>: 
     configmaps "ingress-uid" not found
     {
         ErrStatus: 
             code: 404
             details:
               kind: configmaps
               name: ingress-uid
             message: configmaps "ingress-uid" not found
             metadata: {}
             reason: NotFound
             status: Failure,
     }
 [FAILED] in [BeforeEach] - test/e2e/network/ingress.go:100 @ 03/21/23 16:51:20.9
 Mar 21 16:51:20.900: INF

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.

@aojea aojea changed the title run presubmits with custom image run presubmits with pull-request created image Mar 21, 2023
@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 21, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 22, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 22, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 22, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 22, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

let's see if the image we are building is incorrect, it passed with the nightly one

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

ok, confirmedv the image built with ko is not ok

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

the problem now is that the image built with kois non-root , so it fails to access the files as non-root app, let's see if we can advance with that, is a nice to have thing to be able to run as non-root

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

the problem now is that the image built with kois non-root , so it fails to access the files as non-root app, let's see if we can advance with that, is a nice to have thing to be able to run as non-root

baby steps

  Mar 23 12:44:27.562: INFO: Logs of kube-system/l7-lb-controller-e2e-33e77b4463-7a98c-master:l7-lb-controller on node e2e-33e77b4463-7a98c-master
  Mar 23 12:44:27.562: INFO:  : STARTLOG
  I0323 12:44:17.954137       1 main.go:76] Starting GLBC image: "UNKNOWN", cluster name ""
  log: exiting because of error: log: unable to create log: open /var/log/glbc.log: permission denied

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e


@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

this should be the good one

add a presubmit job that builds the glbc image from current PR
and use it for test in a kubernetes cluster

Co-authored-by: Gaurav Ghildiyal <[email protected]>
@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

@gauravkghildiyal
Copy link
Member

Wow it finally worked. Awesome Antonio -- I didn't know that the permission to write logs could be because ko built a non-root image. Nice to learn.

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

Wow it finally worked. Awesome Antonio -- I didn't know that the permission to write logs could be because ko built a non-root image. Nice to learn.

I learnt it today, but all the credit is your, I already gave up until you found the bash thing

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

the e2e teakes too much, I will try to reduce the list

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

/test pull-ingress-gce-e2e

@gauravkghildiyal
Copy link
Member

Looks good to me
(don't have membership yet for an actual LGTM)

@aojea
Copy link
Member Author

aojea commented Mar 23, 2023

it works and runs in 26 minutes

image

@bowei
Copy link
Member

bowei commented Mar 24, 2023

/lgtm
/approve

Thanks Antonio!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 24, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, bowei

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

The pull request process is described here

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 merged commit 0e6aced into kubernetes:master Mar 24, 2023
@@ -58,22 +53,113 @@ if [[ -z "${IMAGE_TAG:-}" ]]; then
IMAGE_TAG=$(git rev-parse --short HEAD)-$(date +%Y%m%dT%H%M%S)
fi

export GCE_GLBC_IMAGE=$(go run github.com/google/[email protected] build --tags ${IMAGE_TAG} --base-import-paths --push=true ./cmd/glbc/)
KO_GLBC_IMAGE=$(go run github.com/google/[email protected] build --tags ${IMAGE_TAG} --base-import-paths --push=true ./cmd/glbc/)
Copy link
Member

Choose a reason for hiding this comment

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

so this pushes to a registry? what GCs these?

Copy link
Member

@ameukam ameukam Mar 24, 2023

Choose a reason for hiding this comment

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

This is pushed to the GCR registry in the boskos project. you can see the GCS for GCR created in https://github.com/kubernetes/k8s.io/pull/5015/files for kops tests.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should migrate to regional ARs for each boskos project.

Copy link
Member Author

Choose a reason for hiding this comment

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

pushes to boskos created project, I copied from @justinsb , that is why I asked, I think this is eventually garbage collected

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. 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants