Skip to content

Commit

Permalink
test: add cloud test for new scw instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Shillaker committed Oct 4, 2024
1 parent 1f6b963 commit e1c83eb
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion boaviztapi/data/crowdsourcing/cpu_specs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AMD EPYC 7252,Rome,EPYC (Zen 2 (Rome)),TSMC,2019-08-07,2.8 GHz,120.0,8.0,16.0,"3
AMD EPYC 7261,Naples,,,,,,,16.0,,,,,,,,AMD,EPYC,https://github.com/cloud-carbon-footprint/cloud-carbon-coefficients/tree/main/data
AMD EPYC 7262,Rome,EPYC (Zen 2 (Rome)),TSMC,2019-08-07,3.1 GHz,155.0,8.0,16.0,"3,800 million",7.0,2x 74 mm²,416 mm2,14 nm,564.0,io_die_size (416 mm2) + die_size (2x 74 mm²),AMD,EPYC,https://www.techpowerup.com/cpu-specs/epyc-7262.c2257
AMD EPYC 7272,Rome,EPYC (Zen 2 (Rome)),TSMC,2019-08-07,2.6 GHz,120.0,12.0,24.0,"3,800 million",7.0,3x 74 mm²,416 mm2,14 nm,638.0,io_die_size (416 mm2) + die_size (3x 74 mm²),AMD,EPYC,https://www.techpowerup.com/cpu-specs/epyc-7272.c2256
AMD EPYC 7281,Naples,,,,,,,32.0,,,,,,,,AMD,EPYC,https://github.com/cloud-carbon-footprint/cloud-carbon-coefficients/tree/main/data
AMD EPYC 7281,Naples,,TSMC,,2.1 GHz,170.0,16.0,32.0,,,,,,,,AMD,EPYC,https://github.com/cloud-carbon-footprint/cloud-carbon-coefficients/tree/main/data
AMD EPYC 7282,Rome,EPYC (Zen 2 (Rome)),TSMC,2019-08-07,2.8 GHz,120.0,16.0,32.0,"3,800 million",7.0,4x 74 mm²,416 mm2,14 nm,712.0,io_die_size (416 mm2) + die_size (4x 74 mm²),AMD,EPYC,https://www.techpowerup.com/cpu-specs/epyc-7282.c2255
AMD EPYC 72F3,Milan,EPYC (Zen 3 (Milan)),TSMC,2021-03-15,3.7 GHz,180.0,8.0,16.0,"33,200 million",7.0,8x 81 mm²,416 mm²,12 nm,1064.0,io_die_size (416 mm²) + die_size (8x 81 mm²),AMD,EPYC,https://www.techpowerup.com/cpu-specs/epyc-72f3.c2391
AMD EPYC 7301,Naples,,,,,,,32.0,,,,,,,,AMD,EPYC,https://github.com/cloud-carbon-footprint/cloud-carbon-coefficients/tree/main/data
Expand Down
21 changes: 21 additions & 0 deletions tests/api/test_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,3 +967,24 @@ async def test_usage_with_complex_time_workload_e8ads_v5():
)

await test.check_result()


@pytest.mark.asyncio
async def test_empty_usage_scw_dev1_l():
test = CloudTest(
CloudInstanceRequest("scaleway", "dev1-l"),
ADPImpact(
ImpactOutput(0.007718, 0.006189, 0.0064, END_OF_LIFE_WARNING),
ImpactOutput(0.0004059, 1.513e-05, 8e-05),
),
GWPImpact(
ImpactOutput(59.5, 30.69, 45.0, END_OF_LIFE_WARNING),
ImpactOutput(1375.0, 26.36, 500.0),
),
PEImpact(
ImpactOutput(789.0, 409.5, 610.0, END_OF_LIFE_WARNING),
ImpactOutput(715400.0, 14.9, 20000.0),
),
)

await test.check_result()
3 changes: 2 additions & 1 deletion tests/data/archetypes/cloud/providers.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
provider.name,provider.description
aws,Amazon Web Services
azure,Azure
azure,Azure
scaleway,Scaleway
2 changes: 2 additions & 0 deletions tests/data/archetypes/cloud/scaleway.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,vcpu,memory,ssd_storage,hdd_storage,gpu_units,platform,source
dev1-l,4,8,10,0,0,scw_dev1.base,
2 changes: 2 additions & 0 deletions tests/data/archetypes/server.csv
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,5 @@ platform_aws_t3,AWS,rack,2,,,Intel Xeon Platinum 8175M,,12,,32,0,0,,0,0,0,,0,2;2
platform_aws_t3a,AWS,rack,2,,,AMD EPYC 7571,,12,,32,0,0,,0,0,0,,0,2;2;2,2.99;1;5,50;0;100,1,35040,0.33;0.2;0.6,RAM configuration was not verified
platform_aws_t4g,AWS,rack,1,,,Annapurna Labs Graviton2,,8,,32,0,0,,0,0,0,,0,2;2;2,2.99;1;5,50;0;100,1,35040,0.33;0.2;0.6,RAM configuration was not verified
Eadsv5-Type1,Azure,rack,1.0,,,AMD EPYC 7763,112.0,48.0,,16.0,2.0,2048.0,,0.0,0.0,0.0,,,2;2;2,2.99;1;5,50;0;100,1,52560.0,0.33;0.2;0.6,RAM units and per unit capacity not verified. RAM capacity from Azure docs was: 768 GiB

scw_dev1.base,Scaleway,rack,1,16,,AMD EPYC 7281,64,8,,32,5,976,,0,0,0,,0,2,0,50;0;100,1,52560,0.33;0.2;0.6,
5 changes: 3 additions & 2 deletions tests/data/crowdsourcing/cpu_specs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ AMD EPYC 7252,AMD,Rome,EPYC,2.8 GHz,120.0,8.0,,74.0,io_die_size () + die_size (7
AMD EPYC 7261,AMD,Naples,EPYC,2.5 GHz,170.0,8.0,,213.0,io_die_size () + die_size (213 mm²),https://www.techpowerup.com/cpu-specs/epyc-7261.c2299
AMD EPYC 7262,AMD,Rome,EPYC,3.1 GHz,155.0,8.0,,74.0,io_die_size () + die_size (74 mm²),https://www.techpowerup.com/cpu-specs/epyc-7262.c2257
AMD EPYC 7272,AMD,Rome,EPYC,2.6 GHz,120.0,12.0,,74.0,io_die_size () + die_size (74 mm²),https://www.techpowerup.com/cpu-specs/epyc-7272.c2256
AMD EPYC 7281,AMD,Naples,EPYC,2.1 GHz,170.0,16.0,,213.0,io_die_size () + die_size (213 mm²),https://www.techpowerup.com/cpu-specs/epyc-7281.c1927
AMD EPYC 7763,AMD,Milan,EPYC,2.45 GHz,280.0,64.0,128.0,1064.0,io_die_size (416 mm²) + die_size (8x 81 mm²),https://www.techpowerup.com/cpu-specs/epyc-7763.c2373
AMD EPYC 7281,AMD,Naples,EPYC,2.1 GHz,170.0,16.0,32.0,213.0,io_die_size () + die_size (213 mm²),https://www.techpowerup.com/cpu-specs/epyc-7281.c1927
AMD EPYC 7282,AMD,Rome,EPYC,2.8 GHz,120.0,16.0,,74.0,io_die_size () + die_size (74 mm²),https://www.techpowerup.com/cpu-specs/epyc-7282.c2255
AMD EPYC 72F3,AMD,Milan,EPYC,3.7 GHz,180.0,8.0,,1064.0,io_die_size (416 mm²) + die_size (8x 81 mm²),https://www.techpowerup.com/cpu-specs/epyc-72f3.c2391
AMD EPYC 7301,AMD,Naples,EPYC,2.2 GHz,170.0,16.0,,213.0,io_die_size () + die_size (213 mm²),https://www.techpowerup.com/cpu-specs/epyc-7301.c1926
Expand Down Expand Up @@ -3255,4 +3256,4 @@ VIA Nano U2350,VIA,CNA,Nano U,1300 MHz,8.0,1.0,,63.0,io_die_size () + die_size (
VIA Nano U2400,VIA,CNA,Nano U,1300 MHz,8.0,1.0,,63.0,io_die_size () + die_size (63 mm²),https://www.techpowerup.com/cpu-specs/nano-u2400.c2810
VIA Nano U2500,VIA,CNA,Nano U,1200 MHz,7.0,1.0,,63.0,io_die_size () + die_size (63 mm²),https://www.techpowerup.com/cpu-specs/nano-u2500.c2811
VIA Nano X2 U4300,VIA,CNC,Nano X2 U,1200 MHz,13.0,2.0,,66.0,io_die_size () + die_size (66 mm²),https://www.techpowerup.com/cpu-specs/nano-x2-u4300.c2814
,,,,,,
,,,,,,

0 comments on commit e1c83eb

Please sign in to comment.