Skip to content
Closed
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
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ jobs:
name: diff_report_${{ github.event.number }}
path: selfdrive/test/process_replay/diff_report.txt
- name: Checkout ci-artifacts
if: github.repository == 'commaai/openpilot' && github.ref == 'refs/heads/master'
if: github.repository == 'elkoled/openpilot-stock' && github.ref == 'refs/heads/master'
uses: actions/checkout@v4
with:
repository: commaai/ci-artifacts
repository: elkoled/ci-artifacts
ssh-key: ${{ secrets.CI_ARTIFACTS_DEPLOY_KEY }}
path: ${{ github.workspace }}/ci-artifacts
- name: Push refs
if: github.repository == 'commaai/openpilot' && github.ref == 'refs/heads/master'
if: github.repository == 'elkoled/openpilot-stock' && github.ref == 'refs/heads/master'
working-directory: ${{ github.workspace }}/ci-artifacts
run: |
git checkout --orphan process-replay
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ testing = [

dev = [
"av",
"azure-identity",
"azure-storage-blob",
"dictdiffer",
"matplotlib",
"opencv-python-headless",
Expand Down
9 changes: 2 additions & 7 deletions selfdrive/test/process_replay/regen.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from openpilot.selfdrive.test.process_replay.process_replay import CONFIGS, FAKEDATA, ProcessConfig, replay_process, get_process_config, \
check_openpilot_enabled, check_most_messages_valid, get_custom_params_from_lr
from openpilot.selfdrive.test.update_ci_routes import upload_route
from openpilot.tools.lib.framereader import FrameReader
from openpilot.tools.lib.logreader import LogReader, LogIterable, save_log
from openpilot.tools.lib.openpilotci import get_url
Expand Down Expand Up @@ -52,7 +51,7 @@ def setup_data_readers(

def regen_and_save(
route: str, sidx: int, processes: str | Iterable[str] = "all", outdir: str = FAKEDATA,
upload: bool = False, disable_tqdm: bool = False, dummy_driver_cam: bool = False
disable_tqdm: bool = False, dummy_driver_cam: bool = False
) -> str:
if not isinstance(processes, str) and not hasattr(processes, "__iter__"):
raise ValueError("whitelist_proc must be a string or iterable")
Expand Down Expand Up @@ -90,9 +89,6 @@ def regen_and_save(
if not check_most_messages_valid(output_logs):
raise Exception("Route has too many invalid messages")

if upload:
upload_route(rel_log_dir)

return rel_log_dir


Expand All @@ -102,7 +98,6 @@ def comma_separated_list(string):

all_procs = [p.proc_name for p in CONFIGS]
parser = argparse.ArgumentParser(description="Generate new segments from old ones")
parser.add_argument("--upload", action="store_true", help="Upload the new segment to the CI bucket")
parser.add_argument("--outdir", help="log output dir", default=FAKEDATA)
parser.add_argument("--dummy-dcamera", action='store_true', help="Use dummy blank driver camera")
parser.add_argument("--whitelist-procs", type=comma_separated_list, default=all_procs,
Expand All @@ -115,4 +110,4 @@ def comma_separated_list(string):

blacklist_set = set(args.blacklist_procs)
processes = [p for p in args.whitelist_procs if p not in blacklist_set]
regen_and_save(args.route, args.seg, processes=processes, upload=args.upload, outdir=args.outdir, dummy_driver_cam=args.dummy_dcamera)
regen_and_save(args.route, args.seg, processes=processes, outdir=args.outdir, dummy_driver_cam=args.dummy_dcamera)
6 changes: 1 addition & 5 deletions selfdrive/test/process_replay/test_processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
# dashcamOnly makes don't need to be tested until a full port is done
excluded_interfaces = ["mock", "body", "psa"]

BASE_URL = "https://raw.githubusercontent.com/commaai/ci-artifacts/refs/heads/process-replay/"
BASE_URL = "https://raw.githubusercontent.com/elkoled/ci-artifacts/refs/heads/process-replay/"
REF_COMMIT_FN = os.path.join(PROC_REPLAY_DIR, "ref_commit")
EXCLUDED_PROCS = {"modeld", "dmonitoringmodeld"}

Expand Down Expand Up @@ -188,10 +188,6 @@ def test_process(cfg, lr, segment, ref_log_msgs, new_log_path, ignore_fields=Non
if cfg.proc_name not in tested_procs:
continue

# to speed things up, we only test all segments on card
if cfg.proc_name not in ('card', 'controlsd', 'lagd') and car_brand not in ('HYUNDAI', 'TOYOTA'):
continue

cur_log_fn = os.path.join(FAKEDATA, f"{segment}_{cfg.proc_name}_{cur_commit}.zst".replace("|", "_"))
if args.update_refs: # reference logs will not exist if routes were just regenerated
ref_log_path = get_url(*segment.rsplit("--", 1,), "rlog.zst")
Expand Down
84 changes: 0 additions & 84 deletions selfdrive/test/update_ci_routes.py

This file was deleted.

73 changes: 0 additions & 73 deletions tools/lib/azure_container.py

This file was deleted.

14 changes: 3 additions & 11 deletions tools/lib/openpilotci.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
from openpilot.tools.lib.openpilotcontainers import OpenpilotCIContainer
BASE_URL = "https://commadataci.blob.core.windows.net/openpilotci/"

def get_url(*args, **kwargs):
return OpenpilotCIContainer.get_url(*args, **kwargs)

def upload_file(*args, **kwargs):
return OpenpilotCIContainer.upload_file(*args, **kwargs)

def upload_bytes(*args, **kwargs):
return OpenpilotCIContainer.upload_bytes(*args, **kwargs)

BASE_URL = OpenpilotCIContainer.BASE_URL
def get_url(route_name: str, segment_num, filename: str) -> str:
return BASE_URL + f"{route_name.replace('|', '/')}/{segment_num}/{filename}"
6 changes: 0 additions & 6 deletions tools/lib/openpilotcontainers.py

This file was deleted.

88 changes: 0 additions & 88 deletions uv.lock

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

Loading