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

Add timestamp to kaniko builds #11923

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VannTen
Copy link
Contributor

@VannTen VannTen commented Jan 24, 2025

What type of PR is this?
/kind feature

What this PR does / why we need it:
The build steps at the start of CI takes about 2 minutes; now that we
have greatly reduced the overall duration, this is not an insignificant
impact.

Add timestamps to the build process to see measure which steps of the
image build take the most time.

Special notes for your reviewer:
/label ci-short

Does this PR introduce a user-facing change?:

NONE

The build steps at the start of CI takes about 2 minutes; now that we
have greatly reduced the overall duration, this is not an insignificant
impact.

Add timestamps to the build process to see measure which steps of the
image build take the most time.
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. ci-short Run a quick CI pipeline cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 24, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: VannTen

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 added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 24, 2025
@VannTen
Copy link
Contributor Author

VannTen commented Jan 24, 2025

/retest

@VannTen
Copy link
Contributor Author

VannTen commented Jan 24, 2025

INFO[2025-01-24T16:12:53Z] Using caching version of cmd: RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1     && pip install --no-compile --no-cache-dir pip -U     && pip install --no-compile --no-cache-dir -r tests/requirements.txt     && pip install --no-compile --no-cache-dir -r requirements.txt     && KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main/main.yml)     && curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl -o /usr/local/bin/kubectl     && echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check     && chmod a+x /usr/local/bin/kubectl     && curl -LO https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}-1_$(dpkg --print-architecture).deb     && dpkg -i vagrant_${VAGRANT_VERSION}-1_$(dpkg --print-architecture).deb     && rm vagrant_${VAGRANT_VERSION}-1_$(dpkg --print-architecture).deb     && vagrant plugin install vagrant-libvirt     && pip install --no-compile --no-cache-dir kubernetes     && ansible-galaxy collection install kubernetes.core 
INFO[2025-01-24T16:12:53Z] Unpacking rootfs as cmd ADD ./requirements.txt  /kubespray/requirements.txt requires it. 
INFO[2025-01-24T16:12:54Z] ENV VAGRANT_VERSION=2.4.1     VAGRANT_DEFAULT_PROVIDER=libvirt     VAGRANT_ANSIBLE_TAGS=facts     LANG=C.UTF-8     DEBIAN_FRONTEND=noninteractive     PYTHONDONTWRITEBYTECODE=1 
INFO[2025-01-24T16:12:54Z] No files changed in this command, skipping snapshotting. 
INFO[2025-01-24T16:12:54Z] RUN apt update -q     && apt install -yq          libssl-dev          python3-dev          python3-pip          sshpass          apt-transport-https          jq          moreutils          libvirt-dev          openssh-client          rsync          git          ca-certificates          curl          gnupg2          software-properties-common          unzip          libvirt-clients          qemu-utils          qemu-kvm          dnsmasq     && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -     && add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"     && apt update -q     && apt install --no-install-recommends -yq docker-ce     && apt autoremove -yqq --purge && apt clean && rm -rf /var/lib/apt/lists/* /var/log/* 
INFO[2025-01-24T16:12:54Z] Found cached layer, extracting to filesystem 
INFO[2025-01-24T16:13:47Z] WORKDIR /kubespray                           
INFO[2025-01-24T16:13:47Z] RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1     && pip install --no-compile --no-cache-dir pip -U     && pip install --no-compile --no-cache-dir -r tests/requirements.txt     && pip install --no-compile --no-cache-dir -r requirements.txt     && KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main/main.yml)     && curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl -o /usr/local/bin/kubectl     && echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check     && chmod a+x /usr/local/bin/kubectl     && curl -LO https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}-1_$(dpkg --print-architecture).deb     && dpkg -i vagrant_${VAGRANT_VERSION}-1_$(dpkg --print-architecture).deb     && rm vagrant_${VAGRANT_VERSION}-1_$(dpkg --print-architecture).deb     && vagrant plugin install vagrant-libvirt     && pip install --no-compile --no-cache-dir kubernetes     && ansible-galaxy collection install kubernetes.core 
INFO[2025-01-24T16:13:47Z] Found cached layer, extracting to filesystem 
INFO[2025-01-24T16:14:21Z] Pushing image to registry.gitlab.com/kargo-ci/kubernetes-sigs-kubespray/pipeline:1639973584-ccf05d9a 

Not sure if the cache extraction is taking that long, or if the log is wrong and it's actually running the RUN steps.

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. ci-short Run a quick CI pipeline cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants