Tim Hockin
812da0c43e
Pass the whole environment to exechooks
2022-05-16 18:07:46 -07:00
Kubernetes Prow Robot
8dea3f4be5
Merge pull request #509 from thockin/v3-releasing
...
update RELEASING (v3)
2022-03-21 01:41:09 -07:00
Kubernetes Prow Robot
fd3602ed9d
Merge pull request #511 from thockin/v3-make-tools-on-demand
...
Only build test-tools when needed (v3)
2022-03-20 13:35:09 -07:00
Kubernetes Prow Robot
425915398d
Merge pull request #510 from thockin/v3-trimspace
...
TrimSpace exec's stdout/stderr for log (v3)
2022-03-20 13:33:10 -07:00
Tim Hockin
d953c0bf59
TrimSpace exec's stdout/stderr for log
2022-03-17 12:06:52 -07:00
Tim Hockin
2c8e4aff26
Only build test-tools when needed
2022-03-17 12:06:36 -07:00
Tim Hockin
a2c685b4f8
update RELEASING
2022-03-17 12:05:06 -07:00
Tim Hockin
d1c8a4277c
reorder test cases
2022-03-11 08:41:01 -08:00
Tim Hockin
ce4f7a192d
rename test case
2022-03-11 08:41:01 -08:00
Kubernetes Prow Robot
41e90014b5
Merge pull request #502 from Liujingfang1/release-3.x
...
update the base image to fix vulnerabilities
2022-03-10 17:09:06 -08:00
Kubernetes Prow Robot
dbbebf2e48
Merge pull request #499 from sed-i/feature/support_repo_change
...
Support repo change between invocations
2022-03-10 17:08:08 -08:00
Jingfang Liu
4622c69235
update the base image to fix vulnerabilities
...
It fixes the critical vulnerabilities: CVE-2021-45960
2022-03-10 16:18:56 -08:00
Kubernetes Prow Robot
c31398e141
Merge pull request #501 from thockin/release-3.x
...
Overhaul flags in README (v3)
2022-03-09 01:26:12 -08:00
Tim Hockin
f94cd1d4dd
README: Break flags into sections
2022-03-08 09:06:57 -08:00
Tim Hockin
3ffc83e29e
Clean up README table end-of-line
2022-03-08 08:58:28 -08:00
Tim Hockin
0d88253338
Re-order columns in README
2022-03-08 08:58:27 -08:00
Tim Hockin
c21cbbb472
Remove analytics link
2022-03-08 08:57:50 -08:00
Tim Hockin
f4e4db5325
Sync README to current flags
2022-03-08 08:56:29 -08:00
Kubernetes Prow Robot
cd6b833f05
Merge pull request #495 from thockin/release-3.x
...
Add GC controls, e2e regexes (v3 branch)
2022-03-08 03:38:33 -08:00
sed-i
c3791f59b2
Add volume mount for the repo sync test
2022-02-25 11:51:01 -05:00
sed-i
9780b620c0
Add repo-sync test
2022-02-25 03:46:37 -05:00
sed-i
4ca7832b0f
Do not pass global flags outside of main
2022-02-25 02:22:37 -05:00
sed-i
50f6327baf
Replace "origin" literal with flRepo
...
Replaces the hard-coded literal "origin" with the --repo value.
This way cleanup takes place even if --repo value changes between
invocations.
2022-02-24 23:33:15 -05:00
Tim Hockin
5707870ecc
Make e2e treat args as tests-name regexes
2022-02-24 09:04:24 -08:00
Tim Hockin
ad3955c0fa
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-23 16:23:55 -08:00
Tim Hockin
47404c921e
Set some gc.* git config
...
In particular, this sets `gc.autoDetach` to "false".
2022-02-19 16:40:31 -08:00
Kubernetes Prow Robot
e98bbb0228
Merge pull request #493 from thockin/release-3.x
...
Set repoReady even when there wasn't a 1st clone (v3 branch)
2022-02-14 04:33:29 -08:00
Tim Hockin
ff156800a0
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:35:04 -08:00
Kubernetes Prow Robot
53b4dbd00d
Merge pull request #490 from thockin/release-3.x
...
Set $GITSYNC_HASH in exechook (v3)
2022-02-06 23:41:43 -08:00
Tim Hockin
32e0d53b33
Set $GITSYNC_HASH in exechook
2022-02-06 16:26:04 -08:00
Kubernetes Prow Robot
83b5d64e26
Merge pull request #483 from thockin/release-3.x
...
Bump to go 1.17
2022-01-31 01:46:24 -08:00
Tim Hockin
8f46cbbb51
Bump go.mod to 1.17
...
run `go mod tidy` and `go mod vendor`
2022-01-28 20:10:20 -08:00
Tim Hockin
a2f4f2446e
Bump go to 1.17
2022-01-28 20:05:50 -08:00
Tim Hockin
76654434f2
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:01:26 -08:00
Kubernetes Prow Robot
0ce336f03c
Merge pull request #477 from thockin/v3-link-abspath
...
Allow --dest to be an absolute path (v3)
2022-01-23 02:37:56 -08:00
Kubernetes Prow Robot
c0aa9f675d
Merge pull request #475 from thockin/v3-double-register-hook-metric
...
Don't double-register the hook metric (v3)
2022-01-23 01:17:56 -08:00
Kubernetes Prow Robot
bf112d08d8
Merge pull request #473 from thockin/release-3.x
...
Don't try to remove the root if it appears corrupt (v3)
2022-01-23 01:11:56 -08:00
Tim Hockin
ce8c4d38e0
Allow --dest to be an absolute path
...
This means it might live outside of --root.
2022-01-22 23:26:36 -08:00
Tim Hockin
cbf8b896a3
Don't double-register the hook metric
2022-01-22 14:25:24 -08:00
Tim Hockin
fb895f2c12
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 12:47:19 -08:00
Tim Hockin
d88ae88b34
Fix e2e, dropped 'finish()' func
2022-01-21 20:24:09 -08:00
Kubernetes Prow Robot
a385492d63
Merge pull request #469 from thockin/release-3.x
...
Ensure web/exec hooks complete in --one-time
2022-01-20 04:15:51 -08:00
Tim Hockin
89b0bd5448
Ensure web/exec hooks complete in --one-time
...
Also some small e2e cleanups. This is a port from master branch.
2022-01-19 12:01:15 -08:00
Kubernetes Prow Robot
890531f7b0
Merge pull request #464 from nan-yu/release-3.x
...
Expose the ssh diagnostic message
2022-01-06 16:26:30 -08:00
Nan Yu
ad7f801609
Expose the ssh diagnostic message
...
When git-sync fails to clone the git project, the ssh diagnostic message
is suppressed. It is sometimes helpful for debugging the cloning issue.
One example of the ssh dianostic message is
```
ssh: Could not resolve hostname ${REPO_HOST}: Name or service not known
```
This commit removes the `-q` flag from the ssh command to expose such
message.
2022-01-06 16:12:06 -08:00
Mac Chaffee
0f1ed5e8e6
Avoid writing to /etc/passwd unless needed ( #461 )
...
* Avoid writing to /etc/password unless needed
Signed-off-by: Mac Chaffee <me@macchaffee.com>
* Use user.LookupId to check /etc/passwd
Signed-off-by: Mac Chaffee <me@macchaffee.com>
* Remove unused variables
Signed-off-by: Mac Chaffee <me@macchaffee.com>
2021-12-23 09:22:37 -08:00
Kubernetes Prow Robot
dc324f4283
Merge pull request #454 from yedamao/release-3.x
...
fix typo
2021-11-24 11:03:32 -08:00
yedamo
a7acf14da7
fix typo
2021-11-20 13:08:19 +08:00
Tim Hockin
aceea84578
E2E: build IFF running tests
2021-10-18 09:38:06 -07:00
Tim Hockin
fb9dd2d730
E2E: Add whitespace for reading
2021-10-18 09:38:06 -07:00