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 presubmits for dhcp project #406

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ github.com/aws/aws-sdk-go v1.19.18/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpi
github.com/aws/aws-sdk-go v1.19.45/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.38.49 h1:E31vxjCe6a5I+mJLmUGaZobiWmg9KdWaud9IfceYeYQ=
github.com/aws/aws-sdk-go v1.38.49/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/eks-distro-prow-jobs v0.0.0-20231121185634-6ba53d350673 h1:XiHHZUoUM4s2SqOzZbYevh44pvyU6is9E2ZtLePRRz8=
github.com/aws/eks-distro-prow-jobs v0.0.0-20231121185634-6ba53d350673/go.mod h1:Piilw12Sy+npxRwwBM7ApgaWz2Zk8NqHqdFpLhkVi/8=
github.com/aws/eks-distro-prow-jobs v0.0.0-20240531063932-da35904783d2 h1:Cb7Cnf3U9/XYKpbXQOD4hcU05ean8iL4WxRPsDUQNk8=
github.com/aws/eks-distro-prow-jobs v0.0.0-20240531063932-da35904783d2/go.mod h1:YQynplr1bQPGD3ZWznZ2m6DVhT1/djrRHGMS9uLrYKk=
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
Expand Down
70 changes: 70 additions & 0 deletions jobs/aws/eks-anywhere-build-tooling/dhcp-presubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`.
# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on
# how to add a new Prowjob or update an existing Prowjob.
################################################################################

presubmits:
aws/eks-anywhere-build-tooling:
- name: dhcp-presubmit
always_run: false
run_if_changed: "^build/lib/.*|Common.mk|projects/isc-projects/dhcp/.*"
cluster: "prow-presubmits-cluster"
error_on_eviction: true
max_concurrency: 10
skip_report: false
decoration_config:
gcs_configuration:
bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp
path_strategy: explicit
s3_credentials_secret: s3-credentials
labels:
disk-usage: "true"
spec:
serviceaccountName: presubmits-build-account
automountServiceAccountToken: false
containers:
- name: build-container
image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-9be578bba75e08f01086ce11820e3ab6cdf63601.2

command:
- bash
- -c
- >
trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT
&&
if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi
env:
- name: PROJECT_PATH
value: "projects/isc-projects/dhcp"
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: public-access-github-token
key: token
- name: ARTIFACTS_BUCKET
value: "s3://projectbuildpipeline-857-pipelineoutputartifactsb-10ajmk30khe3f"
resources:
requests:
memory: "16Gi"
cpu: "4"
- command:
- sh
args:
- /disk-usage-script/entrypoint.sh
image: public.ecr.aws/amazonlinux/amazonlinux:2
name: disk-monitor
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
jobName: dhcp-presubmit
runIfChanged: ^build/lib/.*|Common.mk|projects/isc-projects/dhcp/.*
commands:
- if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi
projectPath: projects/isc-projects/dhcp
envVars:
- name: ARTIFACTS_BUCKET
value: s3://projectbuildpipeline-857-pipelineoutputartifactsb-10ajmk30khe3f
resources:
requests:
memory: 16Gi
cpu: 4