Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the size of an IP range #622

Merged

Conversation

mrchrisadams
Copy link
Member

This PR includes a calculation of the IP range size when verifying a request. This is helpful for cases when a provider accidentally adds a larger than intended range.

We do this catch massive ranges when verifying a provider request.
Copy link

Eco-CI Output:

Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 23.3719 481.589 3.65 132
checkout 7.37 3.54521 1.77 2
pip install uv wheel 7.47 3.5404 1.77 2
pip install requirements 62.6483 36.8993 6.15 6
pytest 21.5685 437.604 3.68 119

🌳 CO2 Data:
City: San Jose, Lat: 37.1835, Lon: -121.7714
IP: 52.225.76.177
CO₂ from energy is: 0.162295493 g
CO₂ from manufacturing (embodied carbon) is: 0.037661423 g
Carbon Intensity for this location: 337 gCO₂eq/kWh
SCI: 0.199957 gCO₂eq / pipeline run emitted

@mrchrisadams mrchrisadams merged commit 18bb827 into master Oct 23, 2024
3 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.

1 participant