Skip to content

Commit b3bc471

Browse files
authored
Merge pull request #5621 from Particular/rhys/flaky-asb-test
Fix flaky ASB tests
2 parents 5e19298 + 62329e3 commit b3bc471

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,23 @@ jobs:
6464
- name: Smoke test PowerShell module import
6565
if: matrix.os-name == 'Windows'
6666
run: Import-Module ./deploy/PowerShellModules/Particular.ServiceControl.Management
67+
68+
# there is an issue with az cli and python 3.14, so for now we need to pin it
69+
# once the issue is resolved it should be able to be re-floated
70+
# https://github.com/Azure/azure-cli/issues/32980
71+
- name: Set Python 3.13 (Linux)
72+
if: matrix.os-name == 'Linux' && matrix.test-category == 'AzureServiceBus'
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: '3.13'
76+
- name: Install pinned Azure CLI on Python 3.13 (Linux)
77+
if: matrix.os-name == 'Linux' && matrix.test-category == 'AzureServiceBus'
78+
shell: bash
79+
run: |
80+
python -m pip install --upgrade pip
81+
python -m pip install --user "azure-cli==2.64.0"
82+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
83+
6784
- name: Azure login
6885
uses: azure/login@v3.0.0
6986
if: matrix.test-category == 'AzureServiceBus' || matrix.test-category == 'AzureStorageQueues' || matrix.test-category == 'RabbitMQ' || matrix.test-category == 'PostgreSQL'
@@ -92,7 +109,7 @@ jobs:
92109
registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
93110
registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
94111
- name: Setup Azure Service Bus
95-
uses: Particular/setup-azureservicebus-action@v2.3.0
112+
uses: Particular/setup-azureservicebus-action@v2.4.0
96113
if: matrix.test-category == 'AzureServiceBus'
97114
with:
98115
connection-string-name: ServiceControl_TransportTests_ASBS_ConnectionString

.github/workflows/container-integration-test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ jobs:
5757
uses: actions/setup-dotnet@v6.0.0
5858
with:
5959
global-json-file: global.json
60+
61+
# there is an issue with az cli and python 3.14, so for now we need to pin it
62+
# once the issue is resolved it should be able to be re-floated
63+
# https://github.com/Azure/azure-cli/issues/32980
64+
- name: Set Python 3.13 (Linux)
65+
if: matrix.name == 'asb'
66+
uses: actions/setup-python@v5
67+
with:
68+
python-version: '3.13'
69+
- name: Install pinned Azure CLI on Python 3.13 (Linux)
70+
if: matrix.name == 'asb'
71+
shell: bash
72+
run: |
73+
python -m pip install --upgrade pip
74+
python -m pip install --user "azure-cli==2.64.0"
75+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
76+
6077
- name: Run MinVer
6178
uses: Particular/run-minver-action@v1.0.0
6279
- name: Log in to GitHub container registry

0 commit comments

Comments
 (0)