Add long-running connection stability test with dynamic token renewal#3424
Add long-running connection stability test with dynamic token renewal#3424marcschier merged 9 commits intomasterfrom
Conversation
|
|
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
|
@copilot make it so that the token renewal also happens at least 5-6 times when not running the test as long running test |
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
Updated the non-CI default duration from 1 minute to 30 minutes, which allows for 6 token renewals (30 minutes ÷ 5-minute token lifetime = 6 renewals). The change is in commit e72f4d3. |
|
@copilot please keep the length at 1 minute for non ci, but configure the token renewal in this case with 10 seconds. |
Co-authored-by: marcschier <11168470+marcschier@users.noreply.github.com>
Updated the test configuration:
The change is in commit 76e2b27. |
romanett
left a comment
There was a problem hiding this comment.
Works fine after my fix and produces the expected number of successful token renewals.
Proposed changes
Implements a 90-minute nightly test validating OPC UA connection stability, subscription reliability, and security token renewal under extended runtime. Security token lifetime is dynamically configured based on environment to optimize testing for both CI and local development.
Test Implementation (
ConnectionStabilityTest.cs)TEST_DURATION_MINUTESenv var (default: 90min CI, 1min local)GitHub Actions Workflow (
stability-test.yml)contents: readDocumentation
Types of changes
Checklist
Further comments
The dynamic token lifetime configuration optimizes testing for both environments:
Test validates:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.