zuul/zuul
Dong Zhang 79b6252370 Fix bug in getting changed files
The fix including 2 parts:
1. For Gtihub, we use the base_sha instead of target branch to
   be passed as "tosha" parameter to get precise changed files
2. In method getFilesChanges(), use diff() result to filter out
   those files that changed and reverted between commits.

The reason we do not direcly use diff() is that for those
drivers other than github, the "base_sha" is not available yet,
using diff() may include unexpected files when target branch
has diverged from the feature branch.

This solution works for  99.9% of the caseses, it may still get
incorrect list of changed files in following corner case:
1. In non-github connection, whose base_sha is not implented, and
2. Files changed and reverted between commits in the change, and
3. The same file has also diverged in target branch.

The above corner case can be fixed by making base_sha available in
other drivers.

Change-Id: Ifae7018a8078c16f2caf759ae675648d8b33c538
2022-04-25 15:05:48 -07:00
..
ansible Fix Ansible plugin loading 2022-03-24 14:50:20 -07:00
cmd Make a global component registry 2022-02-14 10:58:34 -08:00
connection Clear branch cache on full reconfiguration 2022-03-14 13:09:38 -07:00
driver Fix bug in getting changed files 2022-04-25 15:05:48 -07:00
execution_context Add wrapper driver execution context 2017-08-18 16:35:12 -07:00
executor Make it possible to configure job retries with zuul_return 2022-03-24 10:07:55 +01:00
lib Fix Ansible plugin loading 2022-03-24 14:50:20 -07:00
manager Fix bug in getting changed files 2022-04-25 15:05:48 -07:00
merger Fix bug in getting changed files 2022-04-25 15:05:48 -07:00
reporter Merge "Dequeue items that can no longer merge" 2022-03-23 01:00:06 +00:00
source Populate missing change cache entries 2022-02-17 13:14:23 -08:00
sphinx docs: remove zuuldocs domain 2020-08-04 16:10:09 +10:00
trigger Filter events on event connection 2021-04-24 08:39:03 -07:00
vendor Add some pipeline processing stats 2022-01-25 08:16:52 -08:00
web Merge "Report gross/total tenant resource usage stats" 2022-03-23 09:15:51 +00:00
zk Merge "Report gross/total tenant resource usage stats" 2022-03-23 09:15:51 +00:00
__init__.py Initial commit. 2012-05-29 14:49:32 -07:00
_setup_hook.py Revert "Revert "Create zuul/web/static on demand"" 2020-07-07 19:53:33 +02:00
change_matcher.py Match tag items against containing branches 2020-03-06 13:29:18 -08:00
configloader.py Merge "Support non-top-level dirs as extra config path" 2022-03-22 23:25:25 +00:00
exceptions.py Let zuul-web look up the live log streaming address from ZooKeeper 2021-09-22 07:25:13 +02:00
model.py Fix bug in getting changed files 2022-04-25 15:05:48 -07:00
model_api.py Use JobData for Build result data 2022-03-22 11:33:38 -07:00
nodepool.py Report gross/total tenant resource usage stats 2022-03-17 14:51:18 +01:00
scheduler.py Merge "Not swallow exception when cat job fails" 2022-03-22 12:19:41 +00:00
version.py Store version information in component registry 2021-10-20 17:17:02 +02:00