Commit Graph

59 Commits (8309412f49ee10d35bb46229e640b9c17b164b34)

Author SHA1 Message Date
Rick Carlino 8309412f49 If stale records are found, abort, wait, retry 2020-05-17 14:45:12 -05:00
Rick Carlino 7431ecf800 Try refreshing the data instead 2020-05-17 13:25:16 -05:00
Rick Carlino 2eb178279f Try refreshing the data instead 2020-05-17 13:21:01 -05:00
Rick Carlino 27da00be16 Try refreshing the data instead 2020-05-17 13:13:16 -05:00
Rick Carlino 3b256f14f6 Drilling down deeper into isolating stale data bug 2020-05-17 12:08:37 -05:00
Rick Carlino c5b40d9b6d Typo 2020-05-17 11:09:01 -05:00
Rick Carlino 5abd596957 Begin debugging DirtyWorker 2020-05-17 11:04:55 -05:00
Rick Carlino 12ee219ba6 10.0.0-rc33: Add debug points 2020-05-16 19:02:10 -05:00
Rick Carlino 004f7bb1d7 TODO: Determine source of stale point data in MARK AS 2020-05-16 17:33:48 -05:00
Rick Carlino aecb77b48a Minor formatting issues. 2020-05-16 09:11:49 -05:00
Rick Carlino 02f16082b9 Begin debugging `clean_params` 2020-05-15 20:11:37 -05:00
Rick Carlino 70b5fb18bb v10.0.0-rc32 2020-05-15 18:42:16 -05:00
Rick Carlino e1f79aeaf5 Partial re-write of DirtyWOrker module 2020-05-15 18:24:57 -05:00
Rick Carlino ee517b2f9b v10.0.0-rc28 - Add Process.sleep, lower DirtyWorker polling interval 2020-05-14 17:22:25 -05:00
Rick Carlino b9fca35731 v10.0.0-rc27 - Thanks, Connor. 2020-05-14 16:17:37 -05:00
Rick Carlino db1d6cf4f5 v10.0.0-rc25 - More debug points 2020-05-14 14:31:46 -05:00
Rick Carlino 6a07b8539f v10.0.0-rc24 - add loggers in `DiryWorker` module 2020-05-14 11:42:30 -05:00
Rick Carlino 06323242c2 Add Helpers.wait_for(pid). Remove :noop call 2020-03-31 10:36:48 -05:00
Rick Carlino 7fad9e7231 Formatting 2020-03-30 18:45:04 -05:00
Rick Carlino fe77262626 Coverage for FarmbotExt.API.ImageUploader 2020-03-30 18:38:41 -05:00
Rick Carlino 33b0947c7a Set `async` to `false` in a few missing places 2020-03-30 17:43:29 -05:00
Rick Carlino 9a5b927953 FarmbotExt: Dont supervise anything in :test 2020-03-26 17:06:55 -05:00
Rick Carlino 128ed8ec43 No supervisor children when in test env for FarmbotExt.Bootstrap.Supervisor 2020-03-26 16:30:02 -05:00
Rick Carlino 1f26485f88 Add `LOG_SILENCE` env for local dev, remove less helpful debug/warn logs (Elixir kind, not FarmBot kind) 2020-03-06 10:30:04 -06:00
Rick Carlino 9216cf1456 ¯\_(ツ)_/¯ 2020-03-05 14:57:06 -06:00
Rick Carlino 205fa6afd6 v9.1.2-rc4 2020-02-20 14:52:00 -06:00
Rick Carlino f0b0ff10b0 Remove diag dumps 2020-02-04 14:11:17 -06:00
Rick Carlino 596c3cc659 Typo 2020-01-21 13:08:52 -06:00
Rick Carlino 66bc2cc3b0 Stub out reconciler usage in SysCall module 2020-01-21 11:55:36 -06:00
connor rigby b11faf93a4 Cleanup more syncing and firmware logs 2019-12-30 09:23:39 -08:00
connor rigby 2c27e00884 Disable some logs that come from asset syncing 2019-12-30 09:23:39 -08:00
Connor Rigby 9ce8d10f9c Update reconciler docs 2019-12-17 15:04:45 -08:00
Connor Rigby 2f7f8057d1 Update image_uploader docs 2019-12-17 15:04:45 -08:00
Connor Rigby 63fffcfc5d Update docs for farmbot_ext otp app 2019-12-17 14:25:20 -08:00
connor rigby c341e6cf82 Add name field back to image upload meta 2019-12-16 08:35:58 -08:00
Connor Rigby d3e51996b0 Add new resource: PointGroup 2019-10-22 14:19:32 -07:00
Connor Rigby b173b70675
Fix PATCH HTTP requests for singular resources 2019-09-13 16:03:31 -07:00
Connor Rigby 86843c4553
Make FirstPartyFarmware syncable 2019-09-13 16:03:31 -07:00
connor rigby 21eef22c55
Fix DirtyWorker doing patch requests 2019-09-13 16:03:31 -07:00
Connor Rigby c35b81decb
Add new table public_keys
This will be to load new ssh keys onto a device to allow
remote console for debugging over a network
2019-09-13 16:03:30 -07:00
connor rigby 373a0b2faf
Fix ImageUploader automatic upload
* Serialize DateTime as an iso string for bot_state filesystem
* Set user-agent for uploading images
* Check for more types of images other than jpeg
2019-09-13 16:03:27 -07:00
connor rigby 8b2ac2935e
Create images directory when starting image_uploader 2019-09-13 16:03:27 -07:00
gabrielburnworth ab1b8bbda5
add farmware execution rpc debug logs
Fix AMQP and network disconnects causing limbo state
2019-09-13 16:03:27 -07:00
Connor Rigby 5d54795d11
Fix updating a regimen remotely not updating locally
If a user updated a regimen (started or not by a FarmEvent) it would
take two changes to actually dispatch the change since Regimens
update their own `updated_at` without `put`ing it to the API
2019-09-13 16:03:26 -07:00
Connor Rigby a160d6a41b
Fix factory_resetting the arduino-firmware
* Adds `api_migrated` field to FirmwareConfig
* Changes `factory_reset()` syscall to be `factory_reset(package)`
2019-09-13 16:03:25 -07:00
Connor Rigby e7ea334ab2
Change Preloading and Caching to use the same system as auto_sync
* preloader and reconciler no longer use a transaction
   * This will prevent rolling back a failed sync, but allows farmbot to
   continue operating if a sync does fail
* usage of the preloader updated to reflect this
2019-09-13 16:03:23 -07:00
Connor Rigby eefdbfc883
Further refactor Preloader to allow for error recovery
Previous system would crash the calling processes with a `MatchError`
instead of returning an error. The end result after this commit is
still the same - the auto_sync channel will attempt a resync
every 5 seconds. The log messages/user experience should just
be better now.
2019-09-13 16:03:22 -07:00
Connor Rigby 11220c3697
Refactor Preloader test system
* Gets rid of the Preloader behaviour
  * This prevents the Preloader mock from overriding the _actual_
    implementation.
* Update auto_sync_channel_test to mock the API, not the Preloader
* remove old preloader_test as it didn't do anything
2019-09-13 16:03:22 -07:00
Connor Rigby 9a16c79ee8
Implement error handling for api 429 errors
* Changes auto_sync_channel to no longer use `handle_continue`
  * If preloading fails, retry instead of crashing.
* Make `get_changeset` return an error rather than raising an exception
  * Update every use of that function to handle posibility of error
2019-09-13 16:03:22 -07:00
Connor Rigby 26578a7ae2
Update `mox` to be used correctly.
I previously misunderstood how the black magic of mox actually works.
This updates `farmbot_ext` to not require setting excess data in every
config.exs entry. Also removes calls to `Application.get_env/2`
2019-09-13 16:03:22 -07:00