Skip to content

Commit 9d23afd

Browse files
ansdmergify[bot]
authored andcommitted
Bump dotnet
This commit fixes the CI error on `main` branch where amqp_system_SUITE failed with the following error: ``` Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. at System.Environment.FailFast(System.String) at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode() at System.Globalization.GlobalizationMode..cctor() at System.Globalization.CultureData.CreateCultureWithInvariantData() at System.Globalization.CultureData.get_Invariant() at System.Globalization.CultureInfo..cctor() at System.String.ToLowerInvariant() at Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment.GetArch() at Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment..cctor() at Microsoft.DotNet.PlatformAbstractions.RuntimeEnvironment.GetRuntimeIdentifier() at Microsoft.DotNet.Cli.MulticoreJitProfilePathCalculator.CalculateProfileRootPath() at Microsoft.DotNet.Cli.MulticoreJitActivator.StartCliProfileOptimization() at Microsoft.DotNet.Cli.MulticoreJitActivator.TryActivateMulticoreJit() at Microsoft.DotNet.Cli.Program.Main(System.String[]) Exit code: 134 (pid <0.1533.0>) ``` (cherry picked from commit 8c0cd1b) # Conflicts: # .github/workflows/test-make-target.yaml
1 parent 843a06d commit 9d23afd

File tree

3 files changed

+83
-2
lines changed

3 files changed

+83
-2
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Test target (make)
2+
on:
3+
workflow_call:
4+
inputs:
5+
erlang_version:
6+
required: true
7+
type: string
8+
elixir_version:
9+
required: true
10+
type: string
11+
metadata_store:
12+
required: true
13+
type: string
14+
make_target:
15+
required: true
16+
type: string
17+
plugin:
18+
required: true
19+
type: string
20+
jobs:
21+
test:
22+
name: ${{ inputs.plugin }} (${{ inputs.make_target }})
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 30
25+
steps:
26+
- name: CHECKOUT REPOSITORY
27+
uses: actions/checkout@v4
28+
29+
- name: FETCH TAGS
30+
run: git fetch --tags
31+
32+
- name: SETUP OTP & ELIXIR
33+
uses: erlef/[email protected]
34+
with:
35+
otp-version: ${{ inputs.erlang_version }}
36+
elixir-version: ${{ inputs.elixir_version }}
37+
hexpm-mirrors: |
38+
https://builds.hex.pm
39+
https://cdn.jsdelivr.net/hex
40+
# This currently only applies to Elixir; and can be safely
41+
# restricted to the build jobs to avoid duplication in output.
42+
disable_problem_matchers: true
43+
44+
- name: SETUP DOTNET (rabbit)
45+
uses: actions/setup-dotnet@v4
46+
if: inputs.plugin == 'rabbit'
47+
with:
48+
dotnet-version: '8.0'
49+
50+
- name: SETUP SLAPD (rabbitmq_auth_backend_ldap)
51+
if: inputs.plugin == 'rabbitmq_auth_backend_ldap'
52+
run: |
53+
sudo apt-get update && \
54+
sudo apt-get install -y \
55+
ldap-utils \
56+
slapd
57+
58+
sudo systemctl is-active --quiet apparmor.service && sudo systemctl stop apparmor.service
59+
sudo systemctl disable apparmor.service
60+
61+
- name: RUN TESTS
62+
if: inputs.plugin != 'rabbitmq_cli'
63+
run: |
64+
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }}
65+
66+
# rabbitmq_cli needs a correct broker version for two of its tests.
67+
# But setting PROJECT_VERSION makes other plugins fail.
68+
- name: RUN TESTS (rabbitmq_cli)
69+
if: inputs.plugin == 'rabbitmq_cli'
70+
run: |
71+
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }} PROJECT_VERSION="4.1.0"
72+
73+
- name: UPLOAD TEST LOGS
74+
if: always()
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: CT logs (${{ inputs.plugin }} ${{ inputs.make_target }} OTP-${{ inputs.erlang_version }} ${{ inputs.metadata_store }})
78+
path: |
79+
logs/
80+
!logs/**/log_private
81+
if-no-files-found: ignore

.github/workflows/test-plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- uses: actions/setup-dotnet@v4
7676
if: inputs.plugin == 'rabbit'
7777
with:
78-
dotnet-version: '3.1.x'
78+
dotnet-version: '8.0'
7979
- name: deps/amqp10_client SETUP
8080
if: inputs.plugin == 'amqp10_client'
8181
run: |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "3.1"
3+
"version": "8.0"
44
}
55
}

0 commit comments

Comments
 (0)