Skip to content

Commit

Permalink
taking note on queueintegrationbranch pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Aug 7, 2024
1 parent 724e277 commit 0846d37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions bert_e/tests/test_bert_e.py
Original file line number Diff line number Diff line change
Expand Up @@ -7517,7 +7517,7 @@ def test_job_rebuild_queues_with_hotfix(self):
# Create a couple PRs and queue them
prs = [
self.create_pr('feature/TEST-{:02d}'.format(n), 'development/4.3')
for n in range(1, 4)
for n in range(1, 5)
]

# Add a hotfix PR
Expand All @@ -7531,16 +7531,12 @@ def test_job_rebuild_queues_with_hotfix(self):
'q/4.3',
'q/5.1',
'q/10.0',
'q/1/4.3/feature/TEST-01',
'q/1/5.1/feature/TEST-01',
'q/1/10.0/feature/TEST-01',
'q/2/4.3/feature/TEST-02',
'q/2/5.1/feature/TEST-02',
'q/2/10.0/feature/TEST-02',
'q/3/4.3/feature/TEST-03',
'q/3/5.1/feature/TEST-03',
'q/3/10.0/feature/TEST-03',
'q/4/4.2.17.1/feature/TEST-666',
]
# Check that all PRs are queued

Expand Down
2 changes: 2 additions & 0 deletions bert_e/workflow/gitwaterflow/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ def __eq__(self, other):

@total_ordering
class QueueIntegrationBranch(GWFBranch):
# TODO: review if pattern needs to be changed as having a
# pr id may conflict with the major branch pattern and result in a failure to create.
pattern = r'^q/(?P<pr_id>\d+)/' + IntegrationBranch.pattern[3:]

def __eq__(self, other):
Expand Down

0 comments on commit 0846d37

Please sign in to comment.