foxglove / mcap

MCAP is a modular, performant, and serialization-agnostic container file format, useful for pub/sub and robotics applications.
https://mcap.dev
MIT License
526 stars 96 forks source link

`mcap filter` with `-e`, `-s` not behaving correctly #1268

Closed mwcondino closed 22 hours ago

mwcondino commented 1 day ago

Steps To Reproduce

This fails with configuration error: invalid time range query, end-time is before start-time and exit code 1.

Expected Behavior No issue with this filter, as the given times are valid.

Workaround It appears that using -E and -S works, but requires converting the time into nanoseconds. This is fine for my application. However, I was surprised that -s and -e stopped working; on my previous version (v0.0.42), there were no issues with these args.

linear[bot] commented 1 day ago

FG-9465 `mcap filter` with `-e`, `-s` not behaving correctly

bennetthardwick commented 1 day ago

Looks like it might have been a bad merge. I don't think this line should be there anymore: https://github.com/foxglove/mcap/blob/28627b721622183e59f7be8032cbf33033558a23/go/cli/mcap/cmd/filter.go#L80-L82

mwcondino commented 1 day ago

Looks like it might have been a bad merge. I don't think this line should be there anymore:

https://github.com/foxglove/mcap/blob/28627b721622183e59f7be8032cbf33033558a23/go/cli/mcap/cmd/filter.go#L80-L82

Yeah I'm not familiar with the changes from the last release, but this blurb from the release notes stuck out to me:

filter: Added --start and --end arguments that accept either nanosecond or RFC3339-formatted log times.

I just tested on v0.0.48; no issue with that release.

stewpend0us commented 6 hours ago

I'm having this issue with v0.0.49 also.

james-rms commented 6 hours ago

@stewpend0us v0.0.50 fixes this issue.

mwcondino commented 5 hours ago

Thanks for the fix @james-rms!