Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ updates:
open-pull-requests-limit: 10
schedule:
interval: "daily"

- package-ecosystem: "docker"
directory: "/"
labels:
- "dependency"
- "docker"
open-pull-requests-limit: 10
schedule:
interval: "daily"

- package-ecosystem: "docker-compose"
directory: "/"
labels:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/1.bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Bump version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/2.build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
actions: write
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Get latest version
run: |
git pull origin main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Create release
run: ./scripts/release.sh
- name: Check Workflow
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/4.update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Update changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
9 changes: 7 additions & 2 deletions src/validator/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import traceback
from copy import deepcopy


import requests
import numpy as np
import bittensor as bt
Expand Down Expand Up @@ -436,6 +437,7 @@ def get_centralized_scoring_results(
# Only include commits that have been scored (have scoring_logs)
if validated_commit.scoring_logs:
validated_commit.remove_redundant_logs()
validated_commit.remove_lower_than_highest_score()
scored_commits.append(validated_commit)

except Exception as e:
Expand Down Expand Up @@ -871,6 +873,7 @@ def _sync_state_from_scored_commits(
key=lambda x: x.scored_timestamp or 0,
)
latest.remove_redundant_logs()
latest.remove_lower_than_highest_score()
latest_commits.append(latest)

# Update miner_commits map
Expand All @@ -883,13 +886,15 @@ def _sync_state_from_scored_commits(
):
self.miner_commits[key][challenge_name] = latest

# Push latest per UID into challenge manager's miner_states
scored_commits_sorted_by_timestamp = sorted(
scored_commits, key=lambda x: x.scored_timestamp or 0
)
if latest_commits and challenge_name in self.challenge_managers:
self.challenge_managers[challenge_name].update_miner_infos(
latest_commits
)
self.challenge_managers[challenge_name].update_miner_scores(
latest_commits
scored_commits_sorted_by_timestamp
)

except Exception as e:
Expand Down