Skip to content

Commit 9b4ceff

Browse files
ilonatommyCopilot
andauthored
Replace blob redirect URLs with direct raw.githubusercontent.com URLs (#2159)
The crank controller intermittently fails to follow GitHub's 302 redirect when loading config files from blob URLs with ?raw=true suffix. This causes CONFIG_LOAD failures in benchmark pipeline runs (e.g. pipeline 1208). Replacing all github.com/aspnet/Benchmarks/blob/main/...?raw=true URLs with direct raw.githubusercontent.com/aspnet/Benchmarks/main/... URLs eliminates the redirect hop and makes config loading more reliable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 41614b8 commit 9b4ceff

40 files changed

Lines changed: 88 additions & 88 deletions

build/ci.profile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
imports:
2-
- https://github.com/aspnet/Benchmarks/blob/main/scenarios/packages.yml?raw=true
2+
- https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/packages.yml
33

44
profiles:
55
short:

build/job-variables.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ variables:
8888
- name: containerMatrixJobs
8989
value: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/containers.benchmarks.yml
9090
- name: minimalJobs
91-
value: --config https://github.com/aspnet/Benchmarks/blob/main/src/BenchmarksApps/TechEmpower/Minimal/minimal.benchmarks.yml?raw=true
91+
value: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/src/BenchmarksApps/TechEmpower/Minimal/minimal.benchmarks.yml
9292
- name: blazorSsrJobs
93-
value: --config https://github.com/aspnet/Benchmarks/blob/main/src/BenchmarksApps/TechEmpower/BlazorSSR/blazorssr.benchmarks.yml?raw=true
93+
value: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/src/BenchmarksApps/TechEmpower/BlazorSSR/blazorssr.benchmarks.yml
9494
- name: razorPagesJobs
95-
value: --config https://github.com/aspnet/Benchmarks/blob/main/src/BenchmarksApps/TechEmpower/RazorPages/razorpages.benchmarks.yml?raw=true
95+
value: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/src/BenchmarksApps/TechEmpower/RazorPages/razorpages.benchmarks.yml

build/prbenchmarks.aspnetcore.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ components:
2121
--application.options.outputFiles .\artifacts\bin\Microsoft.AspNetCore.Routing\release\net10.0\
2222

2323
# default arguments that are always used on crank commands
24-
defaults: --config https://github.com/aspnet/Benchmarks/blob/main/build/azure.profile.yml?raw=true --application.framework net11.0 --application.options.collectCounters true --relay
24+
defaults: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/build/azure.profile.yml --application.framework net11.0 --application.options.collectCounters true --relay
2525

2626
# the first value is the default if none is specified
2727
profiles:

build/prbenchmarks.efcore.config.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ components:
99
--application.options.outputFiles .\artifacts\bin\EFCore.Sqlite.Benchmarks\Release\net8.0\
1010

1111
# default arguments that are always used on crank commands
12-
defaults: --config https://github.com/aspnet/Benchmarks/blob/main/build/azure.profile.yml?raw=true --application.framework net8.0 --relay
12+
defaults: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/build/azure.profile.yml --application.framework net8.0 --relay
1313

1414
# the first value is the default if none is specified
1515
profiles:
@@ -24,56 +24,56 @@ profiles:
2424
benchmarks:
2525
AddDataVariations:
2626
description: AddDataVariations
27-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario AddDataVariations
27+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario AddDataVariations
2828

2929
ChildVariations:
3030
description: ChildVariations
31-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario ChildVariations
31+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario ChildVariations
3232

3333
Delete:
3434
description: Delete
35-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario Delete
35+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario Delete
3636

3737
ExistingDataVariations:
3838
description: ExistingDataVariations
39-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario ExistingDataVariations
39+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario ExistingDataVariations
4040

4141
Funcletization:
4242
description: Funcletization
43-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario Funcletization
43+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario Funcletization
4444

4545
Initialization:
4646
description: Initialization
47-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario Initialization
47+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario Initialization
4848

4949
Insert:
5050
description: Insert
51-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario Insert
51+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario Insert
5252

5353
Mixed:
5454
description: Mixed
55-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario Mixed
55+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario Mixed
5656

5757
ParentVariations:
5858
description: ParentVariations
59-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario ParentVariations
59+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario ParentVariations
6060

6161
RawSqlQuery:
6262
description: RawSqlQuery
63-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario RawSqlQuery
63+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario RawSqlQuery
6464

6565
SimpleQuery:
6666
description: SimpleQuery
67-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario SimpleQuery
67+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario SimpleQuery
6868

6969
NavigationsQuery:
7070
description: NavigationsQuery
71-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario NavigationsQuery
71+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario NavigationsQuery
7272

7373
QueryCompilation:
7474
description: QueryCompilation
75-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario QueryCompilation
75+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario QueryCompilation
7676

7777
Update:
7878
description: Update
79-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/efcore.benchmarks.yml?raw=true --scenario Update
79+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/efcore.benchmarks.yml --scenario Update

build/prbenchmarks.runtime.linux_arm64.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ components:
1717
--{{job}}.options.outputFiles ./artifacts/tests/coreclr/Linux.arm64.Release/tests/Core_Root/
1818

1919
# default arguments that are always used on crank commands
20-
defaults: --config https://github.com/aspnet/Benchmarks/blob/main/build/azure.profile.yml?raw=true --{{job}}.framework net11.0 --relay
20+
defaults: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/build/azure.profile.yml --{{job}}.framework net11.0 --relay
2121

2222
variables:
2323
job: application

build/prbenchmarks.runtime.windows_arm64.config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ components:
1717
--{{job}}.options.outputFiles .\artifacts\tests\coreclr\windows.arm64.Release\tests\Core_Root\
1818

1919
# default arguments that are always used on crank commands
20-
defaults: --config https://github.com/aspnet/Benchmarks/blob/main/build/azure.profile.yml?raw=true --{{job}}.framework net11.0 --relay
20+
defaults: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/build/azure.profile.yml --{{job}}.framework net11.0 --relay
2121

2222
variables:
2323
job: application

build/sslstream-scenarios.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ parameters:
2525
type: object
2626
default:
2727
- displayName: "SslStream"
28-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/sslstream.benchmarks.yml?raw=true --property transport=SslStream
28+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/sslstream.benchmarks.yml --property transport=SslStream
2929

3030
- name: quicTransport
3131
type: object
3232
default:
3333
- displayName: "QUIC"
34-
arguments: --config https://github.com/aspnet/Benchmarks/blob/main/scenarios/quic.benchmarks.yml?raw=true --property transport=QUIC --property tlsVersion=1.3 --property tlsResume=no-resume
34+
arguments: --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/quic.benchmarks.yml --property transport=QUIC --property tlsVersion=1.3 --property tlsResume=no-resume
3535

3636
- name: readWriteScenarios
3737
type: object

scenarios/antiforgery.benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
imports:
1+
imports:
22
- https://raw.githubusercontent.com/dotnet/crank/main/src/Microsoft.Crank.Jobs.Wrk/wrk.yml
3-
- https://github.com/aspnet/Benchmarks/blob/main/scenarios/aspnet.profiles.yml?raw=true
3+
- https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/aspnet.profiles.yml
44

55
variables:
66
serverPort: 5000

scenarios/aspnet.profiles.standard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
imports:
2-
- https://github.com/aspnet/Benchmarks/blob/main/scenarios/packages.yml?raw=true
2+
- https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/packages.yml
33

44
profiles:
55
short:

scenarios/aspnet.profiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
imports:
2-
- https://github.com/aspnet/Benchmarks/blob/main/scenarios/packages.yml?raw=true
2+
- https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/packages.yml
33

44
variables:
55
localendpoint: http://localhost:5010

0 commit comments

Comments
 (0)