зеркало из
1
0
Форкнуть 0
Граф коммитов

607 Коммитов

Автор SHA1 Сообщение Дата
Carter Tinney be3b8d0257
chore: Add component governance to Azure Pipelines (#917) 2021-12-09 13:26:13 -08:00
Carter Tinney 4c91b7a024
chore: Added alias packages (#916)
* pip aliases

* Updated archival code link

* Added setup.cfg
2021-12-07 16:02:46 -08:00
Carter Tinney 446ee6a3b5
fix(azure-iot-device): Alarm not offset by sleep (#913)
Alarms will now correctly trigger at the specified time, even if the system goes to sleep.
This was already supposed to have been implemented but apparently was not.
2021-12-06 13:22:17 -08:00
Carter Tinney 5413c86db1
fix(azure-iot-device): OverflowError for sufficiently long SAS expiry or retry interval (#912)
Fixed an issue where sufficiently long SAS token expiry or retry interval could cause a OverflowError due to exceeding the max value supported by a waiting thread
2021-12-03 15:17:49 -08:00
Bert Kleewein 21c614bb04
test: improve e2e logging, increase method connect timeout, and limit leak checking on test setup failure. (#909)
* add logging

* add utcnow to log

* skip leak checking on setup failure

* increase method connect timeout
2021-11-29 10:22:42 -08:00
Carter Tinney cbc70e85a6
chore: Remove nspkg (#910)
* Removed nspkg
* Removed corresponding script logic
* Still is probably VSTS configuration to do to go with these changes
* Updated a old reference to "master" branch
2021-11-24 12:42:27 -08:00
Bert Kleewein 2414e8f0a2
test: create job for running nightly python tests (#908)
* test: create job for running nightly python tests

* Add yaml for canary tests
2021-11-23 10:07:18 -08:00
Bert Kleewein 82bae2b00d
Test: stop uamqp warnings on shutdown (#906) 2021-11-20 21:03:22 -08:00
Dan Hellem 7ffde49ffc
misc changes for default branch rename to main (#903) 2021-11-18 13:31:00 -08:00
Dan Hellem 1df21e5bfa
Danhellem recurring_telemetry.py to readme files (#902)
* Updating Readme's to include recurring_telemetry
2021-11-16 14:18:01 -08:00
Carter Tinney 9061848aea
sample(azure-iot-device): Removed the need for methods in exiting Edge sample (#905)
* Made exit simpler for Edge receive
2021-11-15 10:26:02 -08:00
Bert Kleewein 96ac630aab
Test: Simple stress tests (#904)
* simplified stress run for nightly results

* add comments

* increase timeouts, add missing test dependency

* Update device_e2e/aio/test_send_message_stress.py

Co-authored-by: Vishnu Reddy <vishnureddy17@gmail.com>

* Update device_e2e/aio/test_send_message_stress.py

Co-authored-by: Vishnu Reddy <vishnureddy17@gmail.com>

* code review feedback

* fix silly mistake

Co-authored-by: Vishnu Reddy <vishnureddy17@gmail.com>
2021-11-11 15:21:13 -08:00
Carter Tinney 11bc07b324
sample(azure-iot-device): Recurring Telemetry Samples (#901)
* Recurring telemetry samples
2021-11-09 10:08:18 -08:00
Carter Tinney 04c2033ef4
release(azure-iot-device): Bump version to 2.9.0 for release on 11-02-2021 (#898)
Co-authored-by: Azure IoT Client Build <aziotclb@microsoft.com>
2021-11-02 17:22:39 -07:00
Bert Kleewein e0cc9f258f
Add Python 3.10 to E2E and unit tests in gate
* see if azure pipelines supports 3.10

* add 3.8 and 3.10 unit tests to gate
2021-11-02 16:10:18 -07:00
Carter Tinney 1f61e5e5b5
fix(azure-iot-device): Remove double DisconnectEvent being issued in some cases (#895)
* Removed functionality whereby `MQTTTransportStage` would raise a `DisconnectedEvent` on Pub/Sub/Unsub attempts if the `MQTTTransport` raised an exception
* This was unnecessary because the `on_mqtt_disconnected` handler being attached to the `MQTTTransport` would already do this
2021-11-02 11:41:11 -07:00
Bert Kleewein f91870e1ec
test: remove canary tests from gate and use one consumer-group per flavor (#893)
* remove canary tests and use one consumer-group per flavor

* skip flaky connect tests
2021-11-01 20:36:26 -07:00
Carter Tinney 5ef5f117e5
fix(azure-iot-device): Unittests no longer issue warning due to "task not awaited" (#894)
* Fixed a longstanding issue where warnings were being generated by unittests
* Despite the name of this branch, the issue was actually in asyncio_compat tests, not http tests (that's just where the warning had been surfacing)
2021-11-01 16:49:28 -07:00
Carter Tinney dca132645d
fix(azure-iot-device): Remove version lock on janus version for Py 3.10 compat (#892)
* Removed janus version lock
* This used to be necessary but it seems that it no longer is (I think some of the handler manager changes may have indirectly removed the need)
2021-11-01 16:06:15 -07:00
Bert Kleewein 5541ac3f9c
test: update e2e leak tracking to give leak reports with referrers th… (#889)
* test: update e2e leak tracking to give leak reports with referrers that are actually readable.

* updated LeakTracker documentation and improved code
2021-11-01 13:42:05 -07:00
Bert Kleewein 5919c27d95
test: update eventhub code to use amqp batching for performance (#887)
* update eventhub code to use amqp batching for performance

* remove debug code
2021-10-29 14:42:43 -07:00
Bert Kleewein 40b2e00d9b
test: move e2e parametrization and use pytest marks for some test parameters (#886) 2021-10-29 09:16:06 -07:00
Dan Hellem 6efaead5bc
LTS Content to Readme (#890)
Adding LTS content to readme
2021-10-29 08:16:07 -07:00
Bert Kleewein 50c9f88dd7
test: update iptables to only drop packets for a specific IP (#888) 2021-10-29 07:00:57 -07:00
Carter Tinney 734d7cfcb5
feature(azure-iot-device): Background Exception Handler (#857)
* Pipeline will now send background exceptions to the user via the on_background_exception handler
* Various fixes and refinements of exception flow in the pipeline
* Background exceptions from threading modules and the handler manager do not.
* Background exceptions from the pipeline are still also given to the original logging function
* Note that a bunch of unrelated tests had to be fixed as old error handling processes were allowing them to spuriously pass when they should have failed. With that process removed, they started to fail as they should have all along, and required fixing
2021-10-27 19:19:07 -07:00
Bert Kleewein ba74e3b2a4
fall back to Paho 1.5.1 for Python 2.7 (#883) 2021-10-20 14:46:45 -07:00
Bert Kleewein 35e538beeb
Test: copy aio connect tests to sync (#882)
* Test: copy aio connect tests to sync

* mark failing test with xfail

* clarified comment

* fix python 2.7
2021-10-18 15:16:33 -07:00
Bert Kleewein 464fd1ff74
Test: remove unused PNP tests to reduce maintenance burden (#881) 2021-10-18 14:38:41 -07:00
Bert Kleewein e4e04e2fd1
test: change 'go fast for E2E' markers from exclusive to inclusive (#879) 2021-10-15 20:40:59 -07:00
Bert Kleewein ac52332067
test: add junit_suite_name to make it easier to read results in azure… (#877)
* test: add junit_suite_name to make it easier to read results in azure pipelines

* add quotes to command line args
2021-10-15 16:55:50 -07:00
Bert Kleewein 0f50e4a71f
test: fix send_message tests, change some names (#880) 2021-10-15 16:14:50 -07:00
Bert Kleewein f60413fcbd
test: remove deice_id and module_id params from individual service_helper methods (#876) 2021-10-15 14:17:44 -07:00
Bert Kleewein 7c19f7d25c
feature: E2E leak tracking, also fixed result logging, timeout issues, and made dropped connection tests default. (#867)
* fix junit logging

* redirect juint xml

* add leak tracking

* add timeout to incoming service events

* improve timeout

* enable dropped connection tests

* new connect test

* re-do incoming events with dict and cv

* add ability to wait for specific eventhub message, add flags to make tests faster for iteration

* add test to disconnect inside on_connected handler

* add comments

* fix py27

* keep pytest-timeout below 2.0 until 2.7 support is removed

* add canary to e2e

* move vsts jobs to Ubuntu 20.04

* PR feedback
2021-10-14 17:08:04 -07:00
Carter Tinney 96208e3ec5
doc: Formal notice of Python 2.7 deprecation added to READMEs (#874) 2021-10-14 14:31:13 -07:00
Carter Tinney f8b00dbe1c
doc: Update migration guide for receive handlers (#875) 2021-10-13 13:27:12 -07:00
Vishnu Reddy 9216065ad7
fix doc issues (#871) 2021-10-13 08:08:10 -07:00
Carter Tinney f54a3712c2
fix(azure-iot-device): Timeout now raises OperationTimeout (#872)
* Renamed the internal PipelineTimeoutError to OperationTimeout
* Added a user-facing exception also named OperationTimeout
* Fixed an issue where connection timeouts were raising OperationCancelled incorrectly, now will raise OperationTimeout
* Updated various docs and tests to reflect this
2021-10-12 17:02:55 -07:00
Bert Kleewein 49c96bd3cb
Move pipelines to Ubuntu 20.04 (#870) 2021-10-11 13:04:10 -07:00
Bert Kleewein b2e49363a0
keep pytest-timeout below 2.0 until 2.7 support is removed (#869) 2021-10-11 10:11:44 -07:00
Carter Tinney f1481b1450
release(azure-iot-device): Bump package versions for release on 2021-10-08 (#866)
Co-authored-by: Azure IoT Client Build <aziotclb@microsoft.com>
2021-10-08 15:18:22 -07:00
Carter Tinney 091ffef8e0
fix(azure-iot-device): Ensured retry on auto SAS reauth failure (#865)
* Fixed a bug where if automatic reauthorization upon SAS refresh failed, it would not attempt it again
* Also fixed a few random typos and removed unnecessary comments
2021-10-08 14:27:03 -07:00
Bert Kleewein 0f914ec828
feature: E2E tests additional auth methods, easier config, and pipeline yaml (#864)
* add other auth methods

* update host code to use environment

* add pipeline yaml

* rename device structure and fixture
2021-10-08 13:31:05 -07:00
Bert Kleewein 8d9601dd25
DeviceClient E2E tests (#861)
* e2e tests inistial checkin

* fix to run on py27

* Rename service helper objects

* rename fixtures

* spelling typo

* client createion based on command line args

* sas renewal tests improved and expanded

* parametrize connect_disconnect tests

* fix client_kwargs to use extra_client_args to override parametrized args

* add logging

* move send_message tests together
2021-10-06 16:17:30 -07:00
olivakar c61cd24ba5
Update Key Vault (#862) 2021-10-05 15:42:59 -07:00
Carter Tinney e250aaa4bd
release(azure-iot-hub): Bump package versions for release on 2021-09-24 (#858)
Co-authored-by: Azure IoT Client Build <aziotclb@microsoft.com>
2021-09-24 13:31:21 -07:00
Carter Tinney 43c5fb66f6
fix(azure-iot-device): ReconnectStage State Machine Overhaul (#844)
* Auto-reconnect and SAS renewals should no longer cause problems if one or the other is turned off
* Operations now fail if they require a connection, and one cannot be automatically established
* All user-initiated actions should now return errors in case of failure rather than any kind of indefinite retry
* Created completely separate flows for automatic reconnection vs other connections
* Added more explicitness in conditional logic and improved documentation for clarity
2021-09-24 11:49:31 -07:00
Vishnu Reddy adfe9accec
fix(azure-iot-hub): CBS auth for SAS tokens (#855) 2021-09-23 09:21:35 -07:00
Carter Tinney 2a604dcc2d
fix(azure-iot-device): Added missing docstrings for handlers (#853)
* Updated READMEs with missing information
* Added missing docstrings
2021-09-22 17:50:34 -07:00
Dan Hellem c46545d4fb
add codespaces to readme (#854)
* add codespaces content to the samples readme.md
2021-09-20 13:44:09 -07:00
Carter Tinney 153522a324
fix(azure-iot-hub): Updated package dependencies (#852)
* Updated READMEs with missing information
* Updated dependencies
2021-09-16 10:48:29 -07:00