Skip to content

Conversation

@mikkbachmann
Copy link
Contributor

refs: XRDDEV-2981

@mikkbachmann mikkbachmann requested a review from a team as a code owner November 25, 2025 23:57
@mikkbachmann mikkbachmann requested review from petkivim and removed request for a team November 25, 2025 23:57
@github-actions
Copy link

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19687780807]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 4.609802160 g
CO₂ from manufacturing (embodied carbon) is: 0.504805721 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 5.114608 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Build environment setup28.3178278.0364.1267.48
Build, unit tests and packaging60.23728116.665.891377.47
Packaging and upload artifacts29.3871371.834.23324.35
Total Run79.669766.535.521769.30
Additional overhead from Eco CIN/A29.774.796.21

@github-actions
Copy link

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19687780807]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.644723680 g
CO₂ from manufacturing (embodied carbon) is: 0.088070666 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.732794 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up arm packaging28.4241439.0174.04108.60
Packaging for arm architecture36.5755926.9164.63200.08
Total Run46.581365.944.43308.68
Additional overhead from Eco CIN/A7.954.491.77

@github-actions
Copy link

Job Summary for Gradle

Build and test :: BuildAndPackageOnArm
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core :service:signer:signer-api:make 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19687780807]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.785052080 g
CO₂ from manufacturing (embodied carbon) is: 0.195254505 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 1.980307 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up E2E tests36.0326998.5674.57218.58
E2E tests59.08972783.325.98465.77
Total Run70.603781.895.53684.35
Additional overhead from Eco CIN/A11.953.043.93

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19687780807]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.979988080 g
CO₂ from manufacturing (embodied carbon) is: 0.244568143 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.224556 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up Central Server tests27.916636.0134.25149.54
Test Central Server44.89713558.885.03707.65
Total Run49.774194.894.89857.19
Additional overhead from Eco CIN/A23.745.504.32

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19687780807]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 2.377482880 g
CO₂ from manufacturing (embodied carbon) is: 0.310204585 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.687687 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up Security Server tests32.8066615.7054.45138.35
Test Security Server39.02384421.334.66948.89
Total Run43.205037.044.631087.24
Additional overhead from Eco CIN/A24.925.114.88

@mikkbachmann mikkbachmann requested a review from mloitm November 26, 2025 10:39
});
}

public List<String> sort(SystemProperties.ServicePrioritizationStrategy prioritizationStrategy) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is also filtering, so method name is a bit misleading. Maybe filterSort or select would describe it better?
This also applies to class name.

<documentation>Describes whether the service is free or paid</documentation>
<appinfo>
<jxb:javaType name="org.niis.xroad.globalconf.model.CostType" parseMethod="valueOf" printMethod="name"/>
<jxb:javaType name="org.niis.xroad.common.CostType" parseMethod="valueOf" printMethod="name"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't added in this PR, but bindings should go into separate file as can be seen in identifiers-bindings.xml. Schema should be implementation agnostic.

addresses =
globalConfProvider.getOrderedOcspResponderAddresses(TestCertUtil.getCertChainCert("user_1.p12"));

assertEquals(5, addresses.size());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lists could be asserted better with assertj-s containsExactly

log.debug("OCSP responder urls will be sorted based on prioritization strategy: {}", prioritizationStrategy);
return sorter.sort(prioritizationStrategy);
} else {
return responders.stream().map(SharedParameters.OcspInfo::getUrl).collect(Collectors.toList());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One way to address the sonar warning on this line would be returning Stream instead of list from this method. Then in the calling mehtod, member ocsp responder could be appended with Stream.concat(..., Optional.ofNullable(uri).stream())

});
}

public List<String> sort(SystemProperties.ServicePrioritizationStrategy prioritizationStrategy) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would better to split filtering and sorting into separate methods, so they could be used directly on stream and grouping in divide() would not be necessary.

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

2 similar comments
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19891889103]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 4.716445840 g
CO₂ from manufacturing (embodied carbon) is: 0.506905630 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 5.223351 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Build environment setup29.7315256.8954.2460.56
Build, unit tests and packaging61.0598389.365.941413.06
Packaging and upload artifacts32.90271346.224.44303.04
Total Run84.569992.475.621776.66
Additional overhead from Eco CIN/A30.134.846.22

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19891889103]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.734049680 g
CO₂ from manufacturing (embodied carbon) is: 0.102384860 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.836435 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up arm packaging24.1346484.8783.79128.10
Packaging for arm architecture36.41321070.314.64230.75
Total Run45.031555.194.33358.85
Additional overhead from Eco CIN/A11.435.082.25

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageOnArm
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core :service:signer:signer-api:make 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19891889103]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.721638880 g
CO₂ from manufacturing (embodied carbon) is: 0.190566799 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 1.912206 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up E2E tests35.7794984.1164.54217.00
E2E tests58.3542663.425.91450.92
Total Run69.983647.545.46667.92
Additional overhead from Eco CIN/A11.243.113.61

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19891889103]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 2.113087360 g
CO₂ from manufacturing (embodied carbon) is: 0.262089264 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.375177 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up Central Server tests33.573658.3724.47147.44
Test Central Server43.39253818.514.95771.16
Total Run48.784476.884.87918.60
Additional overhead from Eco CIN/A22.505.024.48

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 19891889103]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 2.412420320 g
CO₂ from manufacturing (embodied carbon) is: 0.312315907 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.724736 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up Security Server tests35.558625.5134.57136.88
Test Security Server39.45734485.554.68957.76
Total Run43.905111.064.671094.64
Additional overhead from Eco CIN/A25.455.294.81

Mikk Bachmann added 2 commits December 6, 2025 22:12
…account for the TSA and OCSP strategy I have selected so that I can manage cost

refs: XRDDEV-2981
…account for the TSA and OCSP strategy I have selected so that I can manage cost

CR changes

refs: XRDDEV-2981
@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 6, 2025

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Eco CI Output [RUN-ID: 19993679358]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 4.602335120 g
CO₂ from manufacturing (embodied carbon) is: 0.497199254 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 5.099534 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Build environment setup25.016300.4113.9276.72
Build, unit tests and packaging60.61198234.035.911392.22
Packaging and upload artifacts32.65011216.274.44273.70
Total Run84.849750.715.601742.64
Additional overhead from Eco CIN/A30.884.866.36

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageWithUnitTests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core build sonar test intTest jacocoTestReport 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Eco CI Output [RUN-ID: 19993679358]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.674549360 g
CO₂ from manufacturing (embodied carbon) is: 0.093754117 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.768303 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up arm packaging25.4181448.8233.87116.12
Packaging for arm architecture35.9222980.3114.61212.48
Total Run44.901429.134.35328.60
Additional overhead from Eco CIN/A10.274.502.28

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Job Summary for Gradle

Build and test :: BuildAndPackageOnArm
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
x-road-core :service:signer:signer-api:make 9.0.0 Build Scan not published

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Eco CI Output [RUN-ID: 19993679358]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.679583680 g
CO₂ from manufacturing (embodied carbon) is: 0.189003279 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 1.868587 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up E2E tests36.7594978.524.59213.09
E2E tests55.33722579.925.74449.35
Total Run67.163558.445.37662.44
Additional overhead from Eco CIN/A10.003.023.31

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Eco CI Output [RUN-ID: 19993679358]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.958785840 g
CO₂ from manufacturing (embodied carbon) is: 0.240302702 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.199089 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up Central Server tests31.6325564.2594.28131.74
Test Central Server45.36363585.715.05710.50
Total Run50.314149.974.93842.24
Additional overhead from Eco CIN/A19.034.903.88

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Eco CI Output [RUN-ID: 19993679358]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 2.464264800 g
CO₂ from manufacturing (embodied carbon) is: 0.323232013 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.787497 gCO₂eq / pipeline run emitted


Total cost of whole PR so far:

Label🖥 avg. CPU utilization [%]🔋 Total Energy [Joules]🔌 avg. Power [Watts]Duration [Seconds]
Set up Security Server tests31.9678757.524.39172.52
Test Security Server38.74314463.384.65960.38
Total Run43.615220.904.611132.90
Additional overhead from Eco CIN/A28.765.715.04

@mikkbachmann mikkbachmann changed the title chore: As a Security Server Administrator I want the data exchange to account for the TSA and OCSP strategy I have selected so that I can manage cost feat: As a Security Server Administrator I want the data exchange to account for the TSA and OCSP strategy I have selected so that I can manage cost Dec 7, 2025
@mikkbachmann mikkbachmann merged commit 9fc8630 into develop Dec 7, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants