project-infra icon indicating copy to clipboard operation
project-infra copied to clipboard

community: add test, lint and coverage jobs

Open dhiller opened this issue 11 months ago • 7 comments

What this PR does / why we need it:

Based on PR https://github.com/kubevirt/community/pull/368 where new make targets test and lint are introduced we are adding new presubmit jobs that execute them.

/hold to wait for above PR to land /wg code-quality

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Special notes for your reviewer:

dhiller avatar Dec 12 '24 14:12 dhiller

/cc @EdDev for wg-code-quality

aburdenthehand avatar Dec 16 '24 09:12 aburdenthehand

@aburdenthehand: GitHub didn't allow me to request PR reviews from the following users: for.

Note that only kubevirt members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @EdDev for wg-code-quality

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.

kubevirt-bot avatar Dec 16 '24 09:12 kubevirt-bot

/test pull-project-infra-lint

dhiller avatar Jan 02 '25 18:01 dhiller

@dhiller: The /test command needs one or more targets. The following commands are available to trigger required jobs:

  • /test build-autoowners-image
  • /test build-bootstrap-image
  • /test build-fedora-coreos-kubevirt-image
  • /test build-kubekins-e2e-image
  • /test build-kubevirt-infra-bootstrap-image
  • /test build-kubevirt-kubevirt.github.io-image
  • /test build-kubevirt-user-guide-image
  • /test build-pr-creator-image
  • /test build-prow-deploy-image
  • /test build-release-tool-image
  • /test build-shared-images-controller-image
  • /test build-test-label-analyzer-image
  • /test build-vm-image-builder-image
  • /test check-prow-config
  • /test pull-kubevirt-org-github-config-updater
  • /test pull-project-infra-check-testgrid-config
  • /test pull-project-infra-ci-search-deploy-test
  • /test pull-project-infra-coverage
  • /test pull-project-infra-grafana-deploy-test
  • /test pull-project-infra-job-config-validator
  • /test pull-project-infra-lint
  • /test pull-project-infra-prow-deploy-test
  • /test pull-project-infra-test-bazel-config
  • /test pull-project-infra-test-external-plugins
  • /test pull-project-infra-test-github-ci-services
  • /test pull-project-infra-test-releng
  • /test pull-project-infra-test-robots
  • /test pull-prow-kubevirt-labels-update-precheck
  • /test pull-prow-nmstate-labels-update-precheck

Use /test all to run the following jobs that were automatically triggered:

  • check-prow-config
  • pull-project-infra-check-testgrid-config
  • pull-project-infra-prow-deploy-test

In response to this:

/test pull-project-infra-lint

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.

kubevirt-bot avatar Jan 02 '25 18:01 kubevirt-bot

/test pull-project-infra-lint

dhiller avatar Jan 02 '25 18:01 dhiller

/cc

lyarwood avatar Jan 09 '25 10:01 lyarwood

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.

/lifecycle stale

kubevirt-bot avatar Apr 09 '25 10:04 kubevirt-bot

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.

/lifecycle rotten

kubevirt-bot avatar May 09 '25 11:05 kubevirt-bot

/remove-lifecycle rotten

dhiller avatar Jun 06 '25 11:06 dhiller

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.

/lifecycle stale

kubevirt-bot avatar Sep 04 '25 11:09 kubevirt-bot

@EdDev did you get a chance to look at this?

aburdenthehand avatar Sep 05 '25 09:09 aburdenthehand

@EdDev did you get a chance to look at this?

I just reviewed the PR that this one is dependent on. +1 to add the job once the other one is merged.

/lgtm

EdDev avatar Sep 07 '25 07:09 EdDev

Since https://github.com/kubevirt/community/pull/368 has been merged we are good to merge this one also.

@brianmcarey would you mind taking a look?

dhiller avatar Sep 17 '25 14:09 dhiller

/rehearse

brianmcarey avatar Sep 17 '25 14:09 brianmcarey

Rehearsal jobs created for this PR:

rehearsal-pull-community-make-lint
rehearsal-pull-community-make-test
rehearsal-pull-community-make-coverage

A rehearsal can be triggered for all jobs by commenting either /rehearse or /rehearse all on this PR.

A rehearsal for a specific job can be triggered by commenting /rehearse {job-name}.

Commenting /rehearse ? triggers a comment with a list of jobs that can be rehearsed.

A pull request can be rehearsed if either the user is authorized to rehearse or the pull request has the ok-to-rehearse label.

Authorized users are the group of users that are members of the KubeVirt GitHub organization AND either are approvers[1] for all files in the pull request or are top-level approvers[1] in the project-infra project.

[1]: see OWNERS file definition for reference.

kubevirt-bot avatar Sep 17 '25 14:09 kubevirt-bot

@dhiller: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
rehearsal-pull-community-make-lint 1566acd41454d2b02fddcbcbb7af05904edfe4d8 link true /test pull-community-make-lint
rehearsal-pull-community-make-coverage 1566acd41454d2b02fddcbcbb7af05904edfe4d8 link true /test pull-community-make-coverage
rehearsal-pull-community-make-test 1566acd41454d2b02fddcbcbb7af05904edfe4d8 link true /test pull-community-make-test

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. I understand the commands that are listed here.

kubevirt-bot avatar Sep 17 '25 14:09 kubevirt-bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brianmcarey

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

kubevirt-bot avatar Sep 17 '25 14:09 kubevirt-bot

As these jobs include project-infra - this breaks the rehearsal plugin. Overriding the rehearsal failures

/override rehearsal-pull-community-make-lint /override rehearsal-pull-community-make-coverage /override rehearsal-pull-community-make-test

brianmcarey avatar Sep 17 '25 14:09 brianmcarey

@brianmcarey: Overrode contexts on behalf of brianmcarey: rehearsal-pull-community-make-coverage, rehearsal-pull-community-make-lint, rehearsal-pull-community-make-test

In response to this:

As these jobs include project-infra - this breaks the rehearsal plugin. Overriding the rehearsal failures

/override rehearsal-pull-community-make-lint /override rehearsal-pull-community-make-coverage /override rehearsal-pull-community-make-test

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.

kubevirt-bot avatar Sep 17 '25 14:09 kubevirt-bot

/unhold

dhiller avatar Sep 18 '25 10:09 dhiller

@dhiller: Updated the job-config configmap in namespace kubevirt-prow at cluster default using the following files:

  • key community-presubmits.yaml using file github/ci/prow-deploy/files/jobs/kubevirt/community/community-presubmits.yaml

In response to this:

What this PR does / why we need it:

Based on PR https://github.com/kubevirt/community/pull/368 where new make targets test and lint are introduced we are adding new presubmit jobs that execute them.

/hold to wait for above PR to land /wg code-quality

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Special notes for your reviewer:

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.

kubevirt-bot avatar Sep 18 '25 10:09 kubevirt-bot