Commit Graph

16473 Commits

Author SHA1 Message Date
infiniteCable2 67a7e79f8a Update opendbc_repo 2025-07-31 18:01:26 +02:00
infiniteCable2 4184306ebd Update opendbc_repo 2025-07-31 17:40:47 +02:00
infiniteCable2 3d31edc5d5 Update opendbc_repo 2025-07-31 17:27:04 +02:00
infiniteCable2 6ffcdb9b4d Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-07-31 17:24:35 +02:00
James Vecellio-Grant c47aadee19 sunnypilot modeld: Sync Tinygrad (#1081)
* Tinygrad bump from sync-20250627

* bump tinygrad_repo

* Reformat metadata generator to match driving_models.json

* bump tinygrad

* Revert "bump tinygrad"

This reverts commit f479dfd5021266e22b34deca06cc3c4d531fb7e8.

* revert me after SP model compiled

* Model recompiled successfully, initiate "revert me after SP model compiled"

This reverts commit 95706eb688c9f5522903bee21892b8871ff8f957.

* The "FillMe" placeholder caused an extra 10 seconds of work

* bump to 22Jul2025

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* Allow more dynamic short names

This should hopefully be future-proof for now.. It's robust enough to return the correct word-digit format (see example on how it generates from given display name below):

'Last Horizon V2 (November 22, 2024)' -> LHV2
'Alabama (November 25, 2024)' -> ALABAMA
'PlayStation (December 03, 2024)' -> PLAYSTAT
'Postal Service (December 09, 2024)' -> PS
'Null Pointer (December 13, 2024)' -> NP
'North America (December 16, 2024)' -> NA
'National Public Radio (December 18, 2024)' -> NPR
'Filet o Fish (March 7, 2025)' -> FOF
'Tomb Raider 2 (April 18, 2025)' -> TR2
'Tomb Raider 3 (April 22, 2025)' -> TR3
'Tomb Raider 4 (April 25, 2025)' -> TR4
'Tomb Raider 5 (April 25, 2025)' -> TR5
'Tomb Raider 6 (April 30, 2025)' -> TR6
'Tomb Raider 7 (May 07, 2025)' -> TR7
'Down to Ride (Revision: May 10, 2025)' -> DTR
'SP Vikander Model (May 16, 2025)' -> SPVM
'VFF Driving (May 15, 2025)' -> VFFD
'Secret Good Openpilot (May 16, 2025)' -> SGO
'Vegetarian Filet o Fish (May 29, 2025)' -> VFOF
'Down To Ride (Revision: May 30, 2025)' -> DTR
'Vegetarian Filet o Fish v2 (June 05, 2025)' -> VFOFV2
'Kerrygold Driving (June 08, 2025)' -> KD
'Tomb Raider 10 (June 16, 2025)' -> TR10
'Organic Kerrygold (June 17, 2025)' -> OK
'Liquid Crystal Driving (June 21, 2025)' -> LCD
'Vegetarian Filet o Fish v3 (June 21, 2025)' -> VFOFV3
'Vibe Model [Custom Model]' -> VMCM
'Tomb Raider 13 (June 27, 2025)' -> TR13
'Aggressive TR (June 28, 2025)' -> ATR
'Tomb Raider 14 (June 30, 2025)' -> TR14
'Cookiemonster Tomb Raider (July 02, 2025)' -> CTR
'Down to Ride (Revision: July 07, 2025)' -> DTR
'Simple Plan Driving (July 07, 2025)' -> SPD
'Down to Ride (Revision: July 08, 2025)' -> DTR
'Tomb Raider 15 (July 09, 2025)' -> TR15
'Tomb Raider 15 rev-2 (July 11, 2025)' -> TR15R2
'Le Tomb Raider 14 (July 14, 2025)' -> LTR14
'Le Tomb Raider 14h (July 17, 2025)' -> LTR14H
'Tomb Raider 16 (July 18, 2025)' -> TR16
'Tomb Raider 16v2 (July 21, 2025)' -> TR16V2

* Update build-all-tinygrad-models.yaml

* Update build-all-tinygrad-models.yaml

* No need to sleep 3 seconds, just send it

* try dynamic

* cleanup

* Update build-single-tinygrad-model.yaml

* bc devtekve said. also, this is repetitive af

* Revert "bc devtekve said. also, this is repetitive af"

This reverts commit 3a0c1562de6eae1d2d213d2f53cfb2edb4eef40c.

* maybe we could use a script instead that both build all

That both build all and sunnypilot-build-model reference

* refactor: consolidate model building steps into a single workflow

* tweak

* tweakx2

* tweakx3

* tweakx4

* dunno dunno...

* output dir

* lots of changes

* Revert "lots of changes"

This reverts commit 4aadb0ee2929fdf9d902335161b22072bef4e068.

* fail if all fail

* no inputs needed

* make it easier for us

* note failure and exit 0

* Update build-all-tinygrad-models.yaml

* not needed unless we really want it

* Update build-single-tinygrad-model.yaml

* Merge branch 'sync-20250627-tinygrad' of github.com:sunnypilot/sunnypilot into sync-20250627-tinygrad

* retry for failed ?

* always run this step because sometimes one build fails

which causes the matrix to fail, but most builds still have uploaded artifacts.

* strip

* no escape

* Update build-all-tinygrad-models.yaml

* Test case from terminal run

(openpilot) james@Mac sunnypilot % jq -c '[.bundles[] | select(.runner=="tinygrad") | {ref, display_name: (.display_name | gsub(" \\([^)]*\\)"; "")), is_20hz}]' \
  /Users/james/Documents/GitHub/sunnypilot-docs/docs/driving_models_v6.json > matrix.json

mkdir -p output
touch "output/model-Tomb Raider 16v2 (July 21, 2025)-544"
touch "output/model-Space Lab Model (July 24, 2025)-547"
touch "output/model-Space Lab Model v1 (July 24, 2025)-548"

built=(); while IFS= read -r line; do built+=("$line"); done < <(
  ls output | sed -E 's/^model-//' | sed -E 's/-[0-9]+$//' | sed -E 's/ \([^)]*\)//' | awk '{gsub(/^ +| +$/, ""); print}'
)

jq -c --argjson built "$(printf '%s\n' "${built[@]}" | jq -R . | jq -s .)" \
  'map(select(.display_name as $n | ($built | index($n | gsub("^ +| +$"; "")) | not)))' \
  matrix.json > retry_matrix.json

cat retry_matrix.json

[]
(openpilot) james@Mac sunnypilot %

* always

* great success

* add suffix to retry artifact so it doesn't conflict

* retry to get_model too

* and there haha

* unnecessary hyphen

* compare built to missing. include retries

* adjust copy of artifacts.

* Update build-all-tinygrad-models.yaml

* Update model selector versioning and add documentation

* Update retry condition for failed models in build-all-tinygrad-models.yaml

* Update retry condition for failed models in build-all-tinygrad-models.yaml

* Update build-single-tinygrad-model.yaml

* false

* default none because why not

* red diff? i think?

* meh ... not needed i guess

* error error error

* Nayan is watching... always watching mike wazowski

* string all the way

* lots of retries just in case because im scared

* more robust

* ONLY ONE!!!!!!

* delete.... a lot

* fix artifacts

* fix artifacts

* make sure each is unique :)

* skip files like artifact duhhhh

* artifact name dir

* concurrency

* copy here

* Update build-single-tinygrad-model.yaml

* Update build-single-tinygrad-model.yaml

* bump

* bump tinygrad

* max parallel? if not, i have the other remedy ready in build-all

* revert me!

* I resynced tinygrad woo hoo

* setup shouldnt fail

* pull

* big ole diff

* condition

* Update build-all-tinygrad-models.yaml

* not always() never always() never!!!

* not failure instead of great success

* Update build-all-tinygrad-models.yaml

* yay that worked. lets invoke build-single one last time

* these arent used and are just taking up 250MB space

* really frog?

* bump back to 3

* self-hosted, tici

* rename to trigger tests

* split sync

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-07-31 06:50:23 -07:00
Jason Wen 72a6c9fd65 ci: refactor PR handling and input parsing for squash-and-merge (#1094)
* ci: refactor PR handling with output file storage and streamlined input parsing

* try runner.temp

* base64 it

* simple simple

* double it and give it to the next person

* One more test

* Apply suggestions from code review

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
2025-07-31 06:41:08 +02:00
infiniteCable2 ad81a84c0b Update opendbc_repo 2025-07-30 19:32:48 +02:00
infiniteCable2 a090d85767 Update opendbc_repo 2025-07-30 18:20:49 +02:00
infiniteCable2 14e0b6c16a Update opendbc_repo 2025-07-30 18:02:06 +02:00
infiniteCable2 fc6b27c1c5 Update opendbc_repo 2025-07-30 17:49:09 +02:00
infiniteCable2 e44087731b Update opendbc_repo 2025-07-30 17:44:59 +02:00
infiniteCable2 5b1f60f589 Update opendbc_repo 2025-07-30 17:29:50 +02:00
infiniteCable2 b404a60e3e Update opendbc_repo 2025-07-30 16:29:36 +02:00
infiniteCable2 33c8e8fa99 Update opendbc_repo 2025-07-30 16:09:56 +02:00
infiniteCable2 15cfb6d076 Update opendbc_repo 2025-07-30 15:50:47 +02:00
infiniteCable2 d150d119e6 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-07-30 15:50:30 +02:00
Jason Wen 24699f3e54 events: Update startup event to support sunnypilot remote origin detection (#1092) 2025-07-29 23:09:58 -04:00
infiniteCable2 c695585fb8 Update opendbc_repo 2025-07-29 19:54:49 +02:00
infiniteCable2 d79077077f Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-07-29 19:53:24 +02:00
Jason Wen fd8cebf2c3 Revert "carControlSP: parse radarState's leadOne & leadTwo" (#1088)
Revert "`carControlSP`: parse `radarState`'s `leadOne` & `leadTwo` (#1082)"

This reverts commit 5b137d666f.
2025-07-29 13:49:58 -04:00
infiniteCable2 cc9b942d56 Update opendbc_repo 2025-07-29 17:48:28 +02:00
infiniteCable2 25d0e02f78 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-07-29 17:46:42 +02:00
Jason Wen 5b137d666f carControlSP: parse radarState's leadOne & leadTwo (#1082)
* `carControlSP`: parse `radarState`'s `leadOne` & `leadTwo`

* typo

* bump
2025-07-29 10:53:06 -04:00
github-actions[bot] bbdbb55a2a [bot] Update translations (#1077)
Update translations

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-07-29 10:24:34 -04:00
github-actions[bot] 5cb9f84c4c [bot] Update Python packages (#1076)
Update Python packages

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 22:36:43 -04:00
infiniteCable2 8888eef67e Update opendbc_repo 2025-07-28 18:46:49 +02:00
infiniteCable2 87fed38032 Update opendbc_repo 2025-07-28 18:38:46 +02:00
infiniteCable2 744768fb3c Update opendbc_repo 2025-07-28 18:26:01 +02:00
infiniteCable2 2fc14e9266 Update opendbc_repo 2025-07-28 18:21:51 +02:00
infiniteCable2 9cbc7b658e Update opendbc_repo 2025-07-28 18:08:03 +02:00
infiniteCable2 632132aae2 Merge branch 'master-new' of https://github.com/sunnypilot/sunnypilot into master-new 2025-07-27 20:21:20 +02:00
infiniteCable d77114447e Update latcontrol_curvature.py 2025-07-27 14:26:28 +02:00
infiniteCable b0a5a55733 Update latcontrol_curvature.py 2025-07-27 14:24:56 +02:00
infiniteCable ad47652aa8 Update latcontrol_curvature.py 2025-07-26 21:28:33 +02:00
Nayan 0c73798049 ui: fix descriptions visibility on models panel (#1079)
i just want to hide the descriptions 🥺
2025-07-26 10:00:23 -04:00
Jason Wen e4ac9af404 ci: enable repo maintenance workflow (#1071)
* ci: enable repo maintenance workflow

* feature branch for now

* gate this

* back to sp master

* update later

* fix format
2025-07-25 12:02:57 -04:00
royjr 0a2e8dd81b mapd: bump version and fix missing folder (#994)
* fix mapd folder

* not needed

* unnecessary

* Remove unused import from mapd_installer.py

Deleted the unused import of Paths from openpilot.system.hardware.hw to clean up the code.

* Undo changes

* update: adjust `mapd` process to conditionally start based on readiness

- Added `mapd_ready` function to check `mapd` readiness.
- Modified `mapd` process to use this readiness condition.

* update: bump mapd version to v1.10.0 and add readiness utility

- Updated `VERSION` to v1.10.0 for `mapd_installer.py`.

* update: integrate `MapdInstallManager` versioning into main thread

- Added a call to `MapdInstallManager.update_installed_version` with `VERSION`.
- Ensures version management for `mapd` is synchronized during runtime.

* refactor: centralize `MAPD_PATH` and `MAPD_BIN_DIR` definitions in module init

- Moved constants to `sunnypilot/mapd/__init__.py` for cleaner imports and reuse.
- Updated references in `mapd_manager.py` and `mapd_installer.py`.

* revert back the file permission

* do this

* no longer static

---------

Co-authored-by: DevTekVE <devtekve@gmail.com>
Co-authored-by: rav4kumar <meetkumardesai@gmail.com>
Co-authored-by: James Vecellio-Grant <159560811+Discountchubbs@users.noreply.github.com>
Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2025-07-25 11:25:31 -04:00
infiniteCable2 04ccb9d40d Update opendbc_repo 2025-07-25 16:23:18 +02:00
infiniteCable2 b5dfec66bc Update opendbc_repo 2025-07-25 13:35:17 +02:00
infiniteCable ce37fc84b5 Update latcontrol_curvature.py 2025-07-25 13:34:29 +02:00
infiniteCable 5e48910801 Update pid_mu.py 2025-07-24 17:49:42 +02:00
infiniteCable a68e5ff6d8 Update latcontrol_curvature.py 2025-07-24 17:45:39 +02:00
infiniteCable 6ca15e2baf Create pid_mu.py 2025-07-24 17:43:37 +02:00
infiniteCable 4c1c7809d5 Update latcontrol_curvature.py 2025-07-24 17:22:52 +02:00
infiniteCable 654caaef3c Update latcontrol_curvature.py 2025-07-24 17:15:56 +02:00
infiniteCable 8608aa6d04 Update latcontrol_curvature.py 2025-07-24 17:13:28 +02:00
infiniteCable 37d29378af Update latcontrol_curvature.py 2025-07-24 17:04:21 +02:00
infiniteCable c9cf18c9d8 Update latcontrol_curvature.py 2025-07-24 16:51:58 +02:00
infiniteCable 767c2cb51e Update latcontrol_curvature.py 2025-07-24 16:47:42 +02:00
infiniteCable2 11da22e9e2 Update opendbc_repo 2025-07-24 15:16:37 +02:00