Kubernetes Prow Robot
2edd4e5d9e
Merge pull request #632 from thockin/error-file-abs-path
...
Make --error-file allow abs paths
2022-09-11 08:47:23 -07:00
Kubernetes Prow Robot
73267a77f8
Merge pull request #631 from thockin/sync_loop_full_sync
...
Change the sync loop to do a full sync
2022-09-11 08:35:25 -07:00
Kubernetes Prow Robot
d0b7661c58
Merge pull request #630 from thockin/e2e_bad_branch
...
e2e: move err tests and add bad-branch
2022-09-11 07:45:23 -07:00
Tim Hockin
87cbd3a691
use makeAbsPath for link
2022-09-05 14:54:25 -07:00
Tim Hockin
c32a042213
Make --error-file allow abs paths
...
This also enforces th previously unenforced "must not start with a
period" rule.
2022-09-05 14:54:10 -07:00
Tim Hockin
3bff6b3cf8
Change the sync loop to do a full sync
...
No longer distinguish the first sync from the rest. This will make later
changes easier.
2022-09-05 14:53:39 -07:00
Kubernetes Prow Robot
77edb67ecf
Merge pull request #627 from thockin/manual_text
...
Fix some of the manual help text
2022-09-04 05:42:35 -07:00
Tim Hockin
f78dc35bf2
Fix some of the manual help text
2022-09-03 10:37:39 -07:00
Kubernetes Prow Robot
cbf034f87b
Merge pull request #629 from thockin/silence_e2e_noise
...
e2e: Silence noise from git init
2022-09-03 03:16:27 -07:00
Kubernetes Prow Robot
a3498fc8ee
Merge pull request #628 from thockin/disable_local_gitconfig
...
Disable local git configs
2022-09-03 03:14:27 -07:00
Kubernetes Prow Robot
734cc197cc
Merge pull request #626 from thockin/fix_typo
...
typo
2022-09-03 03:06:27 -07:00
Kubernetes Prow Robot
9faa5e5b69
Merge pull request #625 from thockin/bump_baseimage
...
Bump base image to 1.4.2
2022-09-03 03:04:27 -07:00
Tim Hockin
fcb577b9fb
e2e: move err tests and add bad-branch
2022-09-02 13:45:43 -07:00
Tim Hockin
8e28337f3c
e2e: Silence noise from git init
2022-09-02 13:45:29 -07:00
Tim Hockin
bcd4629159
Disable local git configs
2022-09-02 13:45:19 -07:00
Tim Hockin
21d331ca7d
typo
2022-09-02 13:45:04 -07:00
Tim Hockin
f932a17dca
Bump base image to 1.4.2
2022-09-01 10:51:58 -07:00
Kubernetes Prow Robot
e1774e223c
Merge pull request #613 from thockin/e2e-errexit-if
...
e2e: Allow N tests to fail and catch errexit
2022-08-31 06:01:01 -07:00
Tim Hockin
d4c60936ed
e2e: Allow N tests to fail and catch errexit
...
Prior to this, `errexit` was not active inside test functions (see
comments in this commit).
Now, multiple tests can fail - it does not abort on the first one.
2022-08-30 14:50:37 -07:00
Kubernetes Prow Robot
6e03c52fc3
Merge pull request #615 from thockin/fetch_if_depth_and_rev_not_found
...
Support shallow sync when the rev is not in-range
2022-08-30 02:51:01 -07:00
Kubernetes Prow Robot
0c0c6f007b
Merge pull request #618 from thockin/fix-env-var-names
...
Allow flags to have multiple env var names
2022-08-30 02:09:01 -07:00
Kubernetes Prow Robot
a1837b827a
Merge pull request #621 from thockin/remove-vestigial-field-sync-command
...
Remove now-obsolete flag from struct
2022-08-29 04:46:37 -07:00
Kubernetes Prow Robot
8a6652e980
Merge pull request #620 from thockin/max-failures-flag-name
...
--max-sync-failures -> --max-failures
2022-08-29 04:44:37 -07:00
Kubernetes Prow Robot
d76d3e6088
Merge pull request #616 from thockin/user-provided-GIT_SSH_COMMAND
...
Retain user-provided GIT_SSH_COMMAND
2022-08-29 04:42:36 -07:00
Kubernetes Prow Robot
791ae83d8d
Merge pull request #614 from thockin/setup_buildx
...
Set up buildx when building containers
2022-08-29 04:40:36 -07:00
Tim Hockin
cdd6980782
Remove now-obsolete flag from struct
...
This was changed to the more general `exechook`, but must have been
missed.
2022-08-21 10:49:27 -07:00
Tim Hockin
eb33e7cfcb
--max-sync-failures -> --max-failures
...
Deprecate but retain the old flag and env.
2022-08-21 10:48:20 -07:00
Tim Hockin
8c6dfeab89
Allow flags to have multiple env var names
...
Anything but the 0th name is considered deprecated.
2022-08-20 17:33:56 -07:00
Tim Hockin
ff0a73f5ad
Support shallow sync when the rev is not in-range
...
If I ask for `--depth 1` and a branch, it's fine.
If I ask for `--depth 1` and a tag, and that tag is not within 1 commit
of the branch that was cloned, it will give an error. Oddly, if the
initial `clone` was OK, and subsequent syncs drift, it is OK, because of
how we `fetch`. But if it is too far away at the beginning, kaboom.
This betrays that the current model of `--branch` and `--rev` is really
broken, and should be revamped. For now, I did something simple - if
the rev can't be found, try a fetch. A "real" fix is more involved.
Also add tests.
2022-08-20 15:41:33 -07:00
Tim Hockin
e047848966
Retain user-provided GIT_SSH_COMMAND
2022-08-20 15:24:00 -07:00
Tim Hockin
98446f45f4
Set up buildx when building containers
2022-08-20 14:44:03 -07:00
Kubernetes Prow Robot
12a1d1e298
Merge pull request #612 from thockin/log-before-run
...
Log before running command
2022-08-19 10:13:52 -07:00
Tim Hockin
b3347f5b24
Log before running command
2022-08-15 09:07:48 -07:00
Kubernetes Prow Robot
b7082f6a19
Merge pull request #607 from thockin/make_debug_bin
...
Pass DBG=1 to `make` to build for debug
2022-08-15 02:36:13 -07:00
Kubernetes Prow Robot
a1d0e16ad6
Merge pull request #610 from thockin/redact_repo_url
...
Better passwd redacting - including URLs
2022-08-15 02:28:13 -07:00
Kubernetes Prow Robot
55131852c8
Merge pull request #608 from thockin/move_tools_to_folder
...
Move tools into a tools/ subdir
2022-08-15 01:48:13 -07:00
Kubernetes Prow Robot
ffbaeffed8
Merge pull request #609 from thockin/basename_link
...
e2e: basename the link when comparing
2022-08-15 01:38:14 -07:00
Kubernetes Prow Robot
5e2996ab91
Merge pull request #606 from thockin/reset_soft_root
...
Reset --soft in the root
2022-08-15 01:36:13 -07:00
Kubernetes Prow Robot
2e2f991604
Merge pull request #605 from thockin/symlink_rename
...
Use os.Symlink() and os.Rename() instead of exec
2022-08-15 01:14:13 -07:00
Kubernetes Prow Robot
ad81e5fd00
Merge pull request #604 from thockin/log_exit_one_time
...
Log when exiting after --one-time
2022-08-15 01:08:13 -07:00
Tim Hockin
f46dae659f
Better passwd redacting - including URLs
2022-08-14 16:32:45 -07:00
Tim Hockin
35f0720083
e2e: basename the link when comparing
2022-08-14 15:51:09 -07:00
Tim Hockin
78ee13c54f
Pass DBG=1 to `make` to build for debug
2022-08-13 18:01:43 -07:00
Tim Hockin
45b1c5485d
Move tools into a tools/ subdir
...
This avoids vendoring all the deps in the root.
2022-08-13 16:43:22 -07:00
Tim Hockin
74b6a13d76
Log when exiting after --one-time
2022-08-12 21:00:46 -07:00
Tim Hockin
8b99b7c143
Use os.Symlink() and os.Rename() instead of exec
...
Should be more portable (MacOS flags to ln and mv are not the same as
GNU).
2022-08-12 21:00:28 -07:00
Tim Hockin
5050413d09
Reset --soft in the root
...
Using --hard checks out all the files. Not resetting fails tests.
2022-08-12 16:34:14 -07:00
Kubernetes Prow Robot
bc865d0329
Merge pull request #599 from thockin/master
...
Document filesystem-volumes issue
2022-08-01 12:34:28 -07:00
Tim Hockin
037af64d3f
Add notes about volumes and lost+found
2022-07-29 14:20:41 -07:00
Tim Hockin
3cf0d42517
Add missing key to log-line
2022-07-29 14:00:03 -07:00