aic-utils 2.0.7__tar.gz → 2.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aic_utils-2.0.7 → aic_utils-2.0.8}/PKG-INFO +1 -1
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils/__init__.py +1 -1
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils/gitlabmanager.py +9 -3
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils.egg-info/PKG-INFO +1 -1
- {aic_utils-2.0.7 → aic_utils-2.0.8}/setup.py +1 -1
- {aic_utils-2.0.7 → aic_utils-2.0.8}/README.md +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils/aic.py +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils/dataset_converter.py +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils/gitlab_init.py +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils/slack_logger.py +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils.egg-info/SOURCES.txt +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils.egg-info/dependency_links.txt +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils.egg-info/requires.txt +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/aic_utils.egg-info/top_level.txt +0 -0
- {aic_utils-2.0.7 → aic_utils-2.0.8}/setup.cfg +0 -0
|
@@ -650,7 +650,10 @@ class GitLabManager:
|
|
|
650
650
|
per_pipeline_status[name] = 'Success'
|
|
651
651
|
per_pipeline_changed_files[name] += 1
|
|
652
652
|
|
|
653
|
-
# Compute prune deletions if requested
|
|
653
|
+
# Compute prune deletions if requested.
|
|
654
|
+
# Handles pipeline names containing slashes (e.g. "ford rdd - v2 QA/Test")
|
|
655
|
+
# which become nested directories in code/ — a naïve split on '/' misidentifies
|
|
656
|
+
# those as orphans and triggers a delete/re-push oscillation across runs.
|
|
654
657
|
prune_deletes = []
|
|
655
658
|
if prune:
|
|
656
659
|
allowed = {cfg['name'] for cfg in self.aic.pipeline_configs}
|
|
@@ -661,8 +664,11 @@ class GitLabManager:
|
|
|
661
664
|
if pname not in allowed:
|
|
662
665
|
prune_deletes.append(path)
|
|
663
666
|
elif path.startswith('code/'):
|
|
664
|
-
|
|
665
|
-
|
|
667
|
+
rel = path[len('code/'):]
|
|
668
|
+
# A code path belongs to pipeline P iff rel == P (file at that exact name)
|
|
669
|
+
# or rel starts with P + '/' (file inside the pipeline's subtree).
|
|
670
|
+
# Iterating allowed correctly handles slash-containing pipeline names.
|
|
671
|
+
if not any(rel == name or rel.startswith(name + '/') for name in allowed):
|
|
666
672
|
prune_deletes.append(path)
|
|
667
673
|
|
|
668
674
|
n_changed = len(actions)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|