Closed ConnorJC3 closed 2 months ago
This PR does not change the code coverage
Thanks for these amazing devloop + new contributor improvements.
TIL: cache mounts... (Thank you for this...)
xref: #1929 (Because this PR resolves checklist items 1,2, and 3)
Working my way through testing the PR, eta end of week.
/lgtm
Will approve once devloop with EKS confirmed works.
/lgtm /approve
/retest
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: AndrewSirenko
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/lgtm
Is this a bug fix or adding new feature?
Neither - it focuses on improvements to the developer experience.
What is this PR about? / Why do we need it?
This PR contains several improvements split up by commit:
Only collect metrics in Prow
Metrics collection runs locally by default, but this makes no sense because the metrics will fail to publish anyways. Check for the presence of
PROW_JOB_ID
and only run metrics in Prow jobs.Simplify image building
Simplifies handling of image building in the
Makefile
. Removes some CI-only defaults from theMakefile
that are confusing and difficult to use. Renameshack/prow.sh
tohack/cloudbuild.sh
to clearly indicate what it is used for.Split driver install/uninstall out to functions; Introduce make cluster/(un)install
Introduces
make cluster/install
andmake cluster/uninstall
which can be used to (un)install the driver for local testing. In order to accomplish this, driver installation and uninstallation are split out into a separate function inutils.sh
Cache GOCACHE and GOMODCACHE in Dockerfile
Configures the
Dockerfile
to cache go modules and build output on supported platforms. In my local testing, this introduced an approximate 30x speedup (from 600 seconds to 20 seconds) when rebuilding the driver image with a small change (such as a dependency upgrade) togo.mod
.Update Makefile documentation and CONTRIBUTING.md
Makefile documentation was somewhat out of date, cleans it up. Also moves the quickstart guide to
CONTRIBUTING.md
and cleans up outdated information inCONTRIBUTING.md
.Cleanup non-external e2e test handling
Cleans up the logic of non-external tests, fixing a bug that causes the tests to fail to run when run from inside a home directory that is a symlink.
What testing is done?
CI/Manual