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

filter tests to save time on terraform-only PRs #715

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

bobcallaway
Copy link
Member

@bobcallaway bobcallaway commented Jul 25, 2023

this change adds paths-ignore filters to make terraform-only changes run faster

Fixes: #699

@@ -174,8 +174,8 @@ kubeadmConfigPatches:
"service-account-signing-key-file": "/etc/kubernetes/pki/sa.key"
"service-account-api-audiences": "api,spire-server"
"service-account-jwks-uri": "https://kubernetes.default.svc/openid/v1/jwks"
networking:
dnsDomain: "${CLUSTER_SUFFIX}"
# networking:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we commenting this now ?

@@ -52,9 +55,10 @@ jobs:

- name: Setup Cluster
# TODO: update after next release.
uses: chainguard-dev/actions/setup-kind@52eca3baf7c09ec1dbc4195449779fa59cc618e6
uses: bobcallaway/cg-actions/setup-kind@f807492463bc85bc56ddbac9ddc265e3caa4c8ce
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need to use this ?

@hectorj2f
Copy link
Contributor

@bobcallaway I am facing the same issue, happy to help fixing it! I was looking at #704 or #705 after talking with @wlynch.

@vaikas
Copy link
Contributor

vaikas commented Aug 8, 2023

Since this is fixing the bug of not running tests unnecessarlly, I'm wondering if we should consider:

  • Not running tests if Terraform files are only changed
  • Maybe running the release tests not on every PR but every now and then. When I added them, I just wanted to prevent breaking users that are using a particular release with unintentional changes. This was (probably?) more important when things in sigstore land were changing Fast&Furious (is it up to 9 🤔 ?)

Signed-off-by: Bob Callaway <bcallaway@google.com>
@bobcallaway bobcallaway changed the title trigger tests from local workspace instead of pulling prior release filter tests to save time on terraform-only PRs Aug 9, 2023
@bobcallaway bobcallaway enabled auto-merge (squash) August 9, 2023 21:55
@bobcallaway bobcallaway merged commit 387d1c2 into sigstore:main Aug 9, 2023
17 checks passed
bobcallaway added a commit to sigstore/community that referenced this pull request Aug 13, 2023
sigstore/scaffolding#715 changed the test behavior of `scaffolding` to optionally only run certain tests on terraform vs non-terraform PRs

Signed-off-by: Bob Callaway <bobcallaway@users.noreply.github.com>
cpanato pushed a commit to sigstore/community that referenced this pull request Aug 14, 2023
sigstore/scaffolding#715 changed the test behavior of `scaffolding` to optionally only run certain tests on terraform vs non-terraform PRs

Signed-off-by: Bob Callaway <bobcallaway@users.noreply.github.com>
cpanato pushed a commit to sigstore/community that referenced this pull request Aug 14, 2023
sigstore/scaffolding#715 changed the test behavior of `scaffolding` to optionally only run certain tests on terraform vs non-terraform PRs

Signed-off-by: Bob Callaway <bobcallaway@users.noreply.github.com>
Gregory-Pereira pushed a commit to Gregory-Pereira/scaffolding that referenced this pull request Nov 16, 2023
Signed-off-by: Bob Callaway <bcallaway@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests should be scoped to terraform or k8s or both
4 participants