Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/lib/poseidon_api/eventlet-0.35.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis authored Jun 4, 2024
2 parents b840288 + 033faff commit 3966138
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
cd lib/poseidon_core && poetry run pip install 'setuptools==64.0.3' && poetry run pytest --cov-report term-missing --cov=. --cov-report=xml && cd ../../
- name: Upload coverage
uses: codecov/codecov-action@v4
if: github.repository == 'faucetsdn/poseidon' && github.event_name == 'push'
if: github.repository == 'faucetsdn/poseidon' && github.ref_name == 'main'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: /home/runner/work/poseidon/poseidon/lib/poseidon_api/coverage.xml,/home/runner/work/poseidon/poseidon/lib/poseidon_cli/coverage.xml,/home/runner/work/poseidon/poseidon/lib/poseidon_core/coverage.xml
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:

jobs:
analyze:
permissions:
actions: read
contents: write
security-events: write
name: Analyze
runs-on: ubuntu-latest

Expand All @@ -35,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -50,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -64,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
75 changes: 36 additions & 39 deletions lib/poseidon_api/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions lib/poseidon_api/poseidon_api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def scrape_prometheus(self):
if "result" in results["data"] and results["data"]["result"]:
for metric in results["data"]["result"]:
if metric["metric"]["hash_id"] in role_hashes:
role_hashes[metric["metric"]["hash_id"]][
"second_role"
] = metric["metric"].get("role", NO_DATA)
role_hashes[metric["metric"]["hash_id"]]["second_role"] = (
metric["metric"].get("role", NO_DATA)
)
role_hashes[metric["metric"]["hash_id"]][
"second_confidence"
] = float(metric["values"][-1][1])
Expand All @@ -145,9 +145,9 @@ def scrape_prometheus(self):
if "result" in results["data"] and results["data"]["result"]:
for metric in results["data"]["result"]:
if metric["metric"]["hash_id"] in role_hashes:
role_hashes[metric["metric"]["hash_id"]][
"third_role"
] = metric["metric"].get("role", NO_DATA)
role_hashes[metric["metric"]["hash_id"]]["third_role"] = (
metric["metric"].get("role", NO_DATA)
)
role_hashes[metric["metric"]["hash_id"]][
"third_confidence"
] = float(metric["values"][-1][1])
Expand Down
2 changes: 1 addition & 1 deletion lib/poseidon_api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ urllib3 = "<2.0.8"
poseidon-core = { path="../poseidon_core", develop=true }

[tool.poetry.dev-dependencies]
black = "23.3.0"
black = "24.3.0"
docker = "6.1.3"
httmock = "1.4.0"
mock = "5.0.2"
Expand Down
28 changes: 15 additions & 13 deletions lib/poseidon_cli/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3966138

Please sign in to comment.