Commit Graph

751 Commits

Author SHA1 Message Date
Tim Hockin 2c6356cbcb Pass CLEANUP=0 to test_e2e to leave logs 2022-06-11 19:49:11 +02:00
Kubernetes Prow Robot 3fcb46ef00
Merge pull request #526 from thockin/master
Fix Makefile to run tools on host OS/ARCH (v4)
2022-06-06 15:12:23 -07:00
Tim Hockin 660024b973 Fix Makefile to run tools on host OS/ARCH 2022-06-06 14:24:41 -07:00
Kubernetes Prow Robot 944fb19697
Merge pull request #521 from thockin/master
Pass the whole environment to exechooks (v4 branch)
2022-05-29 00:18:51 -07:00
Tim Hockin f8a532d9df Pass the whole environment to exechooks 2022-05-16 18:14:09 -07:00
Kubernetes Prow Robot c71d1cb890
Merge pull request #512 from thockin/v4-releasing
Update RELEASING (v4)
2022-03-21 01:41:09 -07:00
Kubernetes Prow Robot e9d1748508
Merge pull request #514 from thockin/v4-log-withname
Use logger.WithName() for web/exechook (v4)
2022-03-21 01:39:10 -07:00
Kubernetes Prow Robot 30c9bc692f
Merge pull request #513 from thockin/v4-make-tools-on-demand
Only build test-tools when needed (v4)
2022-03-20 13:35:09 -07:00
Tim Hockin 3ca8099d2d Use logger.WithName() for web/exechook
This makes logs easier to comprehend, since hooks are async.
2022-03-17 12:10:39 -07:00
Tim Hockin e6a8014ba2 Only build test-tools when needed 2022-03-17 12:10:22 -07:00
Tim Hockin bcef395969 Update RELEASING 2022-03-17 12:09:03 -07:00
Kubernetes Prow Robot adf37ef5fd
Merge pull request #505 from thockin/master
Support repo change between invocations (v4)
2022-03-11 10:25:07 -08:00
Tim Hockin 535735607f Adapt testcases for v4 2022-03-11 08:41:57 -08:00
sed-i ff3d11c925 Add repo-sync test 2022-03-11 08:34:16 -08:00
Tim Hockin f1e698e225 Support repo change between invocations
main logic from PR 499 (v3) from sed-i
2022-03-11 08:32:26 -08:00
Jingfang Liu b3a261c673 update the base image to fix vulnerabilities
It fixes the critical vulnerabilities: CVE-2021-45960
2022-03-11 08:27:17 -08:00
Kubernetes Prow Robot 9cb050efc6 Merge pull request #500 from thockin/master
Update README to latest (master)
2022-03-09 01:24:12 -08:00
Tim Hockin c7186a43b5 Update README to latest
This is the liter `git-sync --man` output
2022-03-08 08:56:17 -08:00
Kubernetes Prow Robot e16e919af1
Merge pull request #496 from thockin/master
Add GC controls, e2e regexes (v4 branch)
2022-03-08 03:48:33 -08:00
Tim Hockin 8c5f33d5dd Make e2e treat args as tests-name regexes 2022-02-24 09:00:57 -08:00
Tim Hockin f4d124bded Add --git-gc flag to control GC on each sync
Values:
* "auto" - run `git gc --auto` (default, respects git gc.* configs)
* "always" - run `git gc`
* "aggressive" - run `git gc --aggressive` (may require a longer timeout)
* "off" - do not run `git gc` on each sync (good for --one-time use)
2022-02-24 08:00:10 -08:00
Tim Hockin a37a758e69 Set some gc.* git config
In particular, this sets `gc.autoDetach` to "false".
2022-02-23 16:53:19 -08:00
Kubernetes Prow Robot 7768c58e93
Merge pull request #494 from thockin/master
Set repoReady even when there wasn't a 1st clone (v4 branch)
2022-02-14 04:33:30 -08:00
Tim Hockin 2538d293ba Set repoReady even when there wasn't a 1st clone
E.g. if the repo is already present (after a restart).
2022-02-12 17:38:36 -08:00
Kubernetes Prow Robot d72750c3dc
Merge pull request #491 from thockin/master
Set $GITSYNC_HASH in exechook (v4)
2022-02-06 23:39:44 -08:00
Tim Hockin 76854fc806 Set $GITSYNC_HASH in exechook 2022-02-06 16:49:34 -08:00
Tim Hockin b752a5eedc Fix tests to set missing arg 2022-02-06 16:29:57 -08:00
Kubernetes Prow Robot 2a7f7f543b
Merge pull request #486 from thockin/master
small manual text fix (v4 branch)
2022-02-01 11:45:49 -08:00
Tim Hockin ec169cb7d3 small manual text fix 2022-02-01 11:07:11 -08:00
Kubernetes Prow Robot 238fbb88b6
Merge pull request #484 from thockin/master
Bump go to 1.17
2022-01-31 01:30:25 -08:00
Tim Hockin 6653b2c791 Bump go.mod to 1.17
run `go mod tidy` and `go mod vendor`
2022-01-28 20:12:08 -08:00
Tim Hockin 944bf01f81 Bump go to 1.17 2022-01-28 20:11:04 -08:00
Tim Hockin f24435fa47 Fix bug caused in previous PR
The .git to check is not the root/.git but the link/.git - tests pass now.
2022-01-24 11:14:24 -08:00
Kubernetes Prow Robot d3324e0b90
Merge pull request #478 from thockin/v4-link-abspath
Allow --dest to be an absolute path (v4)
2022-01-23 02:41:56 -08:00
Kubernetes Prow Robot 10fd8e662b
Merge pull request #476 from thockin/v4-double-register-hook-metric
Don't double-register the hook metric (v4)
2022-01-23 01:17:56 -08:00
Kubernetes Prow Robot 6dc0e44697
Merge pull request #472 from thockin/master
Don't try to remove the root if it appears corrupt (v4)
2022-01-23 01:15:56 -08:00
Tim Hockin 4fc67f5f5f Allow --dest to be an absolute path
This means it might live outside of --root.
2022-01-22 23:39:56 -08:00
Tim Hockin 248a53461d Don't try to remove the root if it appears corrupt
The `--root` is often a volume and can't be removed.  Instead, remove
the contents of it.  Adjust tests to hit this.
2022-01-22 14:28:09 -08:00
Tim Hockin 2a611a72c0 Don't double-register the hook metric 2022-01-22 14:24:47 -08:00
Kubernetes Prow Robot 5aac288e7d
Merge pull request #468 from thockin/master
Followup to #466 - small cleanups for one-time hooks
2022-01-20 04:15:51 -08:00
Tim Hockin c143bfd31a Small cleanup on one-time x hooks 2022-01-19 11:48:50 -08:00
Tim Hockin 9eed6946b7 e2e cleanup
Fix some whitespace and names.
Make command-line and flag handling a bit cleaner.
2022-01-19 11:38:23 -08:00
Kubernetes Prow Robot d8bd262b87
Merge pull request #466 from ChrisERo/master
fix: resolve issue #463
2022-01-19 11:24:05 -08:00
ChrisERo ad6a34abb5 refactor: corrected variable names and logs inside HookRunner.WaitForCompletion 2022-01-15 15:23:06 -05:00
ChrisERo 394b2c7149 fix: perform hook null check before waiting
Last 2 commits introduced fatal null-pointer exception when waiting on
HookRunner object when not set, e.g. waiting for WebhookRunner when no
webhook is defined. Fixed bug and got test_e2e.sh to run successfully.
2022-01-15 15:19:31 -05:00
ChrisERo 5490b721d8 fix: made tests more efficient by waiting less 2022-01-14 13:53:09 -05:00
ChrisERo 8827bf7489 refactor: imporved efficiency and code style
* changed sendCompletedOnceMessageIfApplicable so that it kills thread
  after executing
* moved logic for waiting on HookRunner into function defined in
  HookRunner itself
2022-01-14 13:41:59 -05:00
ChrisERo 043c356c03 fix: fixed e2e tests
Resolved a few issues with e2e tests discovered after running
test_e2d.sh. Just finished setting up Linux (Fedora) environment in
which this script can be run.
2022-01-14 03:23:20 -05:00
ChrisERo 0246fb509f feat: added e2e --one-time tests for webhook 2022-01-10 20:06:25 -05:00
ChrisERo 8e098f8c2a fix: made exechook_once tests more efficient
* Removed multiple iterations of tests
* Reduced sleep time after GIT_SYNC command execution
2022-01-10 20:06:24 -05:00