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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aic_utils
3
- Version: 2.0.7
3
+ Version: 2.0.8
4
4
  Summary: AIC API wrapper and GitLab integration framework for pipeline management
5
5
  Home-page: https://github.com/dylandoyle11/aic_utils
6
6
  Author: Dylan D
@@ -8,7 +8,7 @@ from .gitlab_init import GitLabRepositoryInitializer
8
8
  from .dataset_converter import DatasetConverter
9
9
  from .slack_logger import SlackLogger
10
10
 
11
- __version__ = '2.0.7'
11
+ __version__ = '2.0.8'
12
12
  __author__ = 'Dylan D'
13
13
 
14
14
  __all__ = [
@@ -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
- parts = path[len('code/'):].split('/', 1)
665
- if parts and parts[0] not in allowed:
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aic_utils
3
- Version: 2.0.7
3
+ Version: 2.0.8
4
4
  Summary: AIC API wrapper and GitLab integration framework for pipeline management
5
5
  Home-page: https://github.com/dylandoyle11/aic_utils
6
6
  Author: Dylan D
@@ -7,7 +7,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
7
7
 
8
8
  setup(
9
9
  name='aic_utils',
10
- version='2.0.7',
10
+ version='2.0.8',
11
11
  packages=find_packages(),
12
12
  install_requires=[
13
13
  'requests>=2.25.0',
File without changes
File without changes
File without changes