Repository navigation
tw default dir and --clean - #222
Conversation
also, - improve help - improve signal handling
|
Gitar automatically fixes CI failures and addresses comments starting with ⚙️ Options:
🔄 To revert changes, post a comment: * Gitar never force pushes to your branch |
|
I think |
|
|
||
| - the protocol line which is terminated with '\r\n'. | ||
| - the headers each terminated by '\r\n' | ||
| - the separator '\r\n' |
There was a problem hiding this comment.
Can we add some examples? Like one for to when relative path
There was a problem hiding this comment.
Having thought about it during implementation, I think it is simpler for us and the user to just have --to refer a path without automagically placing certain things in the signadot dir.
But it is the name of the directory. Maybe it would be clearer if it said
|
Yes better, however what about |
Personally I don't like adding a level there because it is harder to interact with. |
|
LGTM |
- no-instrument is hidden - --to has become --output-dir, which only applies when !short - --output-file may be provided with --short
(depends on PR in signadot repo)
* add continuous readiness and match checking
* adds doneAt reporting
in terminal logs and directory output meta.jsons, this will
output a json
```
{"middlewareRequestID":"c3e36c64","doneAt":"2025-10-13T17:06:32.026094+02:00"}
{"middlewareRequestID":"777bfc30","doneAt":"2025-10-13T17:06:38.413933+02:00"}
{"middlewareRequestID":"777bfc30","watchOptions":"-trunc(0)/-trunc(0)","when":"2025-10-13T15:06:38.385144025Z","normHost":"location.hotrod-devmesh.svc.cluster.local:8081","routingKey":"g9wqf90gqw9mj","destWorkload":"Deployment/hotrod-devmesh/location","requestURI":"http://sbr-dep-location-2c37fc13.hotrod-devmesh.svc:8081/locations","method":"GET","proto":"HTTP/1.1","userAgent":"curl/8.7.1"}
```
Note the order between doneAt and the initial request is not guaranteed
(I think it would be hard and likely buggy to do so...)
In request directories, the meta.jsons gets updated to include "doneAt":
* fixes to continuous readiness checking
- overwrite on first apply
- fix retErrs overwrites
- fix a couple of logic issues
* adds doneAt reporting (#220)
* adds doneAt reporting
in terminal logs and directory output meta.jsons, this will
output a json
```
{"middlewareRequestID":"c3e36c64","doneAt":"2025-10-13T17:06:32.026094+02:00"}
{"middlewareRequestID":"777bfc30","doneAt":"2025-10-13T17:06:38.413933+02:00"}
{"middlewareRequestID":"777bfc30","watchOptions":"-trunc(0)/-trunc(0)","when":"2025-10-13T15:06:38.385144025Z","normHost":"location.hotrod-devmesh.svc.cluster.local:8081","routingKey":"g9wqf90gqw9mj","destWorkload":"Deployment/hotrod-devmesh/location","requestURI":"http://sbr-dep-location-2c37fc13.hotrod-devmesh.svc:8081/locations","method":"GET","proto":"HTTP/1.1","userAgent":"curl/8.7.1"}
```
Note the order between doneAt and the initial request is not guaranteed
(I think it would be hard and likely buggy to do so...)
In request directories, the meta.jsons gets updated to include "doneAt":
* fixes to continuous readiness checking
- overwrite on first apply
- fix retErrs overwrites
- fix a couple of logic issues
* cleanup/mw name constant
* add --no-instrument and improve log output
* json/yaml, --to, unified log for session
* add local machine id when appropriate
* retErr-issue-again
* remove debug print
* fixes in yaml support
* use request. uniformly
* tw default dir and --clean (#222)
* implementation of tw directory default
also,
- improve help
- improve signal handling
* add --clean flag
* fix sentence in help
* use -{json,yaml} for directory
* update flags after discussion
- no-instrument is hidden
- --to has become --output-dir, which only applies when !short
- --output-file may be provided with --short
* check match consistency as well.
* rename watch command to record
* add 'r' alias for record
* rename files to reflect 'record' command name
* use trafficwatch.MiddlewareName everywhere
* rename cli mw to trafficwatch from trafficwatch-client
(depends on PR in signadot repo)
* add continuous readiness and match checking
* adds doneAt reporting
in terminal logs and directory output meta.jsons, this will
output a json
```
{"middlewareRequestID":"c3e36c64","doneAt":"2025-10-13T17:06:32.026094+02:00"}
{"middlewareRequestID":"777bfc30","doneAt":"2025-10-13T17:06:38.413933+02:00"}
{"middlewareRequestID":"777bfc30","watchOptions":"-trunc(0)/-trunc(0)","when":"2025-10-13T15:06:38.385144025Z","normHost":"location.hotrod-devmesh.svc.cluster.local:8081","routingKey":"g9wqf90gqw9mj","destWorkload":"Deployment/hotrod-devmesh/location","requestURI":"http://sbr-dep-location-2c37fc13.hotrod-devmesh.svc:8081/locations","method":"GET","proto":"HTTP/1.1","userAgent":"curl/8.7.1"}
```
Note the order between doneAt and the initial request is not guaranteed
(I think it would be hard and likely buggy to do so...)
In request directories, the meta.jsons gets updated to include "doneAt":
* fixes to continuous readiness checking
- overwrite on first apply
- fix retErrs overwrites
- fix a couple of logic issues
* adds doneAt reporting (#220)
* adds doneAt reporting
in terminal logs and directory output meta.jsons, this will
output a json
```
{"middlewareRequestID":"c3e36c64","doneAt":"2025-10-13T17:06:32.026094+02:00"}
{"middlewareRequestID":"777bfc30","doneAt":"2025-10-13T17:06:38.413933+02:00"}
{"middlewareRequestID":"777bfc30","watchOptions":"-trunc(0)/-trunc(0)","when":"2025-10-13T15:06:38.385144025Z","normHost":"location.hotrod-devmesh.svc.cluster.local:8081","routingKey":"g9wqf90gqw9mj","destWorkload":"Deployment/hotrod-devmesh/location","requestURI":"http://sbr-dep-location-2c37fc13.hotrod-devmesh.svc:8081/locations","method":"GET","proto":"HTTP/1.1","userAgent":"curl/8.7.1"}
```
Note the order between doneAt and the initial request is not guaranteed
(I think it would be hard and likely buggy to do so...)
In request directories, the meta.jsons gets updated to include "doneAt":
* fixes to continuous readiness checking
- overwrite on first apply
- fix retErrs overwrites
- fix a couple of logic issues
* cleanup/mw name constant
* add --no-instrument and improve log output
* json/yaml, --to, unified log for session
* add local machine id when appropriate
* retErr-issue-again
* remove debug print
* fixes in yaml support
* use request. uniformly
* tw default dir and --clean (#222)
* implementation of tw directory default
also,
- improve help
- improve signal handling
* add --clean flag
* fix sentence in help
* use -{json,yaml} for directory
* update flags after discussion
- no-instrument is hidden
- --to has become --output-dir, which only applies when !short
- --output-file may be provided with --short
* check match consistency as well.
* rename watch command to record
* add 'r' alias for record
* rename files to reflect 'record' command name
* use trafficwatch.MiddlewareName everywhere
* rename cli mw to trafficwatch from trafficwatch-client
(depends on PR in signadot repo)
* delay doneAt as needed
Following slack discussion
summary