Skip to content

Conversation

raits
Copy link
Contributor

@raits raits commented Oct 14, 2025

This PR:

  • Updates the autologin script to accept pins for multiple tokens
  • Adds environmental variables for configuring multiple tokens in the Sidecar and development Docker images
  • Keeps the old behavior for existing users
  • Migrates xrd-dev-stack to use the autologin script instead of Hurl so we have at least some test coverage
  • Fixes Sidecar issue where autologin reports success but does not actually log the token in if the token is still uninitialised

raits added 3 commits October 13, 2025 15:52
 * Change compose environment to rely on autologin rather than Hurl
   scripts for logging into tokens
 * Improve autologin so that uninitialized tokens don't cause the script
   to succeed
 * Improve sidecar environment variable handling to support passing pins
   for multiple tokens
@raits raits requested review from a team and petkivim as code owners October 14, 2025 10:55
@raits raits requested review from a team and removed request for a team October 14, 2025 10:58
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

Copy link

github-actions bot commented Oct 14, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 18494201935]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 4.583403200 g
CO₂ from manufacturing (embodied carbon) is: 0.496180684 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 5.079584 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.002285.394.1069.53
Build, unit tests and packaging60.48168082.215.911366.90
Packaging and upload artifacts32.566513434.44302.64
Total Run83.649710.605.581739.07
Additional overhead from Eco CIN/A28.574.446.44

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

Copy link

github-actions bot commented Oct 14, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 18494201935]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.752547360 g
CO₂ from manufacturing (embodied carbon) is: 0.104650252 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 0.857198 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.2061538.3973.90137.91
Packaging for arm architecture35.78971055.984.61228.88
Total Run45.271594.384.35366.79
Additional overhead from Eco CIN/A9.434.292.20

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

Copy link

github-actions bot commented Oct 14, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 18494201935]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.819276800 g
CO₂ from manufacturing (embodied carbon) is: 0.223797298 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.043074 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 tests34.5945572.6644.51127.00
Test Central Server44.15933281.744.99657.39
Total Run49.763854.404.91784.39
Additional overhead from Eco CIN/A18.804.594.10

Copy link

github-actions bot commented Oct 14, 2025

Eco CI Output - Old Energy Estimation

Eco CI Output [RUN-ID: 18494201935]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 2.404604000 g
CO₂ from manufacturing (embodied carbon) is: 0.319665591 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.724270 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 tests34.4281658.4744.52145.61
Test Security Server37.2244436.034.55974.79
Total Run41.705094.504.551120.40
Additional overhead from Eco CIN/A24.265.244.63

Copy link

Copy link

Eco CI Output [RUN-ID: 18519202422]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 5.189257680 g
CO₂ from manufacturing (embodied carbon) is: 0.588682274 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 5.777940 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.5815288.2494.1070.24
Build, unit tests and packaging60.14948031.925.881365.34
Packaging and upload artifacts29.20012674.024.26627.70
Total Run72.0210994.195.332063.28
Additional overhead from Eco CIN/A27.514.266.46

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

Copy link

Eco CI Output [RUN-ID: 18519202422]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 0.957640800 g
CO₂ from manufacturing (embodied carbon) is: 0.136739496 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 1.094380 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.9745545.0173.95137.91
Packaging for arm architecture30.88571483.884.35341.35
Total Run38.362028.904.23479.26
Additional overhead from Eco CIN/A9.474.362.17

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

Copy link

Eco CI Output [RUN-ID: 18519202422]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.759148720 g
CO₂ from manufacturing (embodied carbon) is: 0.198381544 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 1.957530 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 tests37.7886986.0834.65212.27
E2E tests53.95492740.935.67483.04
Total Run65.493727.015.36695.31
Additional overhead from Eco CIN/A10.363.023.43

Copy link

Eco CI Output [RUN-ID: 18519202422]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 1.804555120 g
CO₂ from manufacturing (embodied carbon) is: 0.220898510 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.025454 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 tests37.2871527.9714.64113.78
Test Central Server43.90273295.244.99660.45
Total Run49.383823.214.94774.23
Additional overhead from Eco CIN/A20.115.423.71

Copy link

Eco CI Output [RUN-ID: 18519202422]:

🌳 CO2 Data:
City: CONSTANT, Lat: , Lon:
IP:
CO₂ from energy is: 2.325798880 g
CO₂ from manufacturing (embodied carbon) is: 0.303048914 g
Carbon Intensity for this location: 472 gCO₂eq/kWh
SCI: 2.628848 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 tests36.6424604.0494.58131.82
Test Security Server38.69334323.494.65930.34
Total Run43.244927.544.641062.16
Additional overhead from Eco CIN/A18.304.304.26

@raits raits requested review from mikkbachmann and removed request for a team October 20, 2025 10:48
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.

1 participant