This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add activity columns to list_debuggees. (#94)
This is in further support of #76
- Loading branch information
Showing
25 changed files
with
377 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -501,20 +501,19 @@ on a debuggee will be installed on all running instances of it. | |
Run the following command | ||
``` | ||
snapshot-dbg-cli list_debuggees | ||
snapshot-dbg-cli list_debuggees --include-inactive | ||
``` | ||
The output resembles the following: | ||
``` | ||
Name ID Description | ||
------------- ---------- ---------------------------------------- | ||
test-app - v1 d-24abc4f1 node index.js module:test-app version:v1 | ||
test-app - v2 d-8dd7f149 node index.js module:test-app version:v2 | ||
Name ID Description Last Active Status | ||
------------- ---------- ---------------------------------------- -------------------- -------- | ||
test-app - v2 d-8dd7f149 node index.js module:test-app version:v2 2022-12-16T21:45:07Z ACTIVE | ||
test-app - v1 d-24abc4f1 node index.js module:test-app version:v1 2022-10-16T21:45:07Z INACTIVE | ||
``` | ||
### Set Snapshots | ||
Snapshots capture local variables and the call stack at a specific line location | ||
|
@@ -636,12 +635,12 @@ Where: | |
The output resembles the following: | ||
``` | ||
Status Location Condition CompletedTime ID | ||
--------- ----------- ----------- --------------------------- ------------ | ||
ACTIVE index.js:21 b-1648008775 | ||
ACTIVE index.js:21 b-1648044994 | ||
ACTIVE index.js:21 b-1648045010 | ||
COMPLETED index.js:21 2022-03-23T02:52:23.558000Z b-1648003845 | ||
Status Location Condition CompletedTime ID | ||
--------- ----------- ----------- -------------------- ------------ | ||
ACTIVE index.js:21 b-1648008775 | ||
ACTIVE index.js:21 b-1648044994 | ||
ACTIVE index.js:21 b-1648045010 | ||
COMPLETED index.js:21 2022-03-23T02:52:23Z b-1648003845 | ||
``` | ||
### Get snapshot | ||
|
@@ -667,8 +666,8 @@ Location: index.js:30 | |
Condition: No condition set. | ||
Expressions: No expressions set. | ||
Status: Complete | ||
Create Time: 2022-05-13T14:14:01.444000Z | ||
Final Time: 2022-05-13T14:14:02.516000Z | ||
Create Time: 2022-05-13T14:14:01Z | ||
Final Time: 2022-05-13T14:14:02Z | ||
|
||
------------------------------------------------------------------------------- | ||
| Evaluated Expressions | ||
|
@@ -802,8 +801,8 @@ Log Message Format: a == 3 | |
Location: Main.java:23 | ||
Condition: No condition set | ||
Status: EXPIRED | ||
Create Time: 2022-08-19T18:14:38.240000Z | ||
Final Time: 2022-08-20T18:14:39.618000Z | ||
Create Time: 2022-08-19T18:14:38Z | ||
Final Time: 2022-08-20T18:14:39Z | ||
User Email: [email protected] | ||
``` | ||
|
@@ -825,10 +824,10 @@ The output resembles the following: | |
``` | ||
This command will delete the following debuggees: | ||
|
||
Name ID Last Active Status | ||
------------------------- ---------- --------------------------- ------ | ||
default - 20221125t224954 d-39f7082e 2022-12-05T03:13:42.166000Z STALE | ||
default - 20221125t154414 d-dba89292 2022-12-04T03:02:48.780000Z STALE | ||
Name ID Last Active Status | ||
------------------------- ---------- -------------------- ------ | ||
default - 20221125t224954 d-39f7082e 2022-12-05T03:13:42Z STALE | ||
default - 20221125t154414 d-dba89292 2022-12-04T03:02:48Z STALE | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
'isFinalState': False, | ||
'location': {'line': 26, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:15.426000Z', | ||
'createTime': '2022-04-14T18:50:15Z', | ||
} # yapf: disable (Subjectively, more readable hand formatted) | ||
|
||
SNAPSHOT_COMPLETE = { | ||
|
@@ -43,8 +43,8 @@ | |
'isFinalState': True, | ||
'location': {'line': 26, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:15.426000Z', | ||
'finalTime': '2022-04-14T18:50:30.637000Z', | ||
'createTime': '2022-04-14T18:50:15Z', | ||
'finalTime': '2022-04-14T18:50:30Z', | ||
} # yapf: disable (Subjectively, more readable hand formatted) | ||
|
||
class SnapshotDebuggerBreakpointUtilsTests(unittest.TestCase): | ||
|
@@ -120,7 +120,7 @@ def test_set_converted_timestamps(self): | |
}, | ||
{ | ||
'createTimeUnixMsec': 1649962215000, | ||
'createTime': '2022-04-14T18:50:15.000000Z' | ||
'createTime': '2022-04-14T18:50:15Z' | ||
}, | ||
), | ||
( | ||
|
@@ -141,7 +141,7 @@ def test_set_converted_timestamps(self): | |
}, | ||
{ | ||
'finalTimeUnixMsec': 1649962215000, | ||
'finalTime': '2022-04-14T18:50:15.000000Z' | ||
'finalTime': '2022-04-14T18:50:15Z' | ||
}, | ||
), | ||
( | ||
|
@@ -163,9 +163,9 @@ def test_set_converted_timestamps(self): | |
}, | ||
{ | ||
'createTimeUnixMsec': 1649962215000, | ||
'createTime': '2022-04-14T18:50:15.000000Z', | ||
'createTime': '2022-04-14T18:50:15Z', | ||
'finalTimeUnixMsec': 1649962215001, | ||
'finalTime': '2022-04-14T18:50:15.001000Z' | ||
'finalTime': '2022-04-14T18:50:15Z' | ||
}, | ||
), | ||
] | ||
|
@@ -363,7 +363,7 @@ def test_logpoint_get_short_status_active(self): | |
'isFinalState': False, | ||
'location': {'line': 26, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:15.852000Z', | ||
'createTime': '2022-04-14T18:50:15Z', | ||
} # yapf: disable (Subjectively, more readable hand formatted) | ||
|
||
self.assertEqual(get_logpoint_short_status(logpoint), 'ACTIVE') | ||
|
@@ -386,8 +386,8 @@ def test_logpoint_get_short_status_complete(self): | |
'isFinalState': True, | ||
'location': {'line': 27, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:16.852000Z', | ||
'finalTime': '2022-04-14T18:50:31.274000Z', | ||
'createTime': '2022-04-14T18:50:16Z', | ||
'finalTime': '2022-04-14T18:50:31Z', | ||
} # yapf: disable (Subjectively, more readable hand formatted) | ||
|
||
self.assertEqual(get_logpoint_short_status(logpoint), 'COMPLETED') | ||
|
@@ -404,8 +404,8 @@ def test_logpoint_get_short_status_expired(self): | |
'isFinalState': True, | ||
'location': {'line': 28, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:17.852000Z', | ||
'finalTime': '2022-04-14T18:50:31.274000Z', | ||
'createTime': '2022-04-14T18:50:17Z', | ||
'finalTime': '2022-04-14T18:50:31Z', | ||
'status': { | ||
'description': { | ||
'format': 'The logpoint has expired' | ||
|
@@ -430,8 +430,8 @@ def test_logpoint_get_short_status_failed(self): | |
'isFinalState': True, | ||
'location': {'line': 29, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:18.852000Z', | ||
'finalTime': '2022-04-14T18:50:31.274000Z', | ||
'createTime': '2022-04-14T18:50:18Z', | ||
'finalTime': '2022-04-14T18:50:31Z', | ||
'status': { | ||
'description': { | ||
'format': 'No code found at line 29' | ||
|
@@ -458,8 +458,8 @@ def test_logpoint_get_short_status_data_incomplete(self): | |
'isFinalState': True, | ||
'location': {'line': 29, 'path': 'index.js'}, | ||
'userEmail': '[email protected]', | ||
'createTime': '2022-04-14T18:50:18.852000Z', | ||
'finalTime': '2022-04-14T18:50:31.274000Z', | ||
'createTime': '2022-04-14T18:50:18Z', | ||
'finalTime': '2022-04-14T18:50:31Z', | ||
'status': { | ||
'description': { | ||
'format': 'No code found at line 29' | ||
|
Oops, something went wrong.