source-controller/pkg
Sunny 71d3870e0a
Avoid skipping reconciliation
- Attempt short-circuiting clone only when the artifact is already in the
  storage.
- A successful no-op clone need not return an error, but a partial
  commit which contains only a hash + reference.
- On no-op clone, reconcileSource() populates the source build dir by
  copying the existing artifact and lets the reconciliation continue.
- Reconciliation is not skipped to allow other subreconcilers to operate
  on other parts of GitRepo object like include, ignore, etc, when
  attributes associated with them change but the remote repo has not
  changed.
- Add a function IsConcreteCommit() to differentiate between partial and
  concrete commit.
- Update and simplify go-git and libgit2 no-op clone tests.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-05-16 17:06:44 +05:30
..
azure build: properly wire integration tests 2022-03-11 10:43:35 +01:00
gcp test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
git Avoid skipping reconciliation 2022-05-16 17:06:44 +05:30
minio Remove minio region 2022-05-10 14:28:54 +01:00
sourceignore test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00