Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate "bad pcap" tests #2988

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Consolidate "bad pcap" tests #2988

merged 1 commit into from
Jan 24, 2024

Conversation

philrz
Copy link
Contributor

@philrz philrz commented Jan 24, 2024

When #2987 got merged, a "bad pcap" test that we'd stopped running in CI became reactivated, but the way pcap errors are surfaced changed in #2955 such that the test fails now on tip of main. As it turns out, the way the error is reported now looks much the same as in the new test added as part of #2955. Therefore it seems the tests can be consolidated, which I'm proposing doing in this PR.

There's a little more devil in the details, too. For the new "bad pcap" test added as part of #2955, as I get into in brimdata/brimcap#331 (comment), the way the error is being reported as Zeek's fault is actually inaccurate and so I expect it to start loading successfully in Zui once that Brimcap issue is addressed (i.e., we could maybe justify keeping both tests around, but the new one has a limited life span). Meanwhile, the old "bad pcap" test I'm proposing keeping around doesn't even load in Wireshark so it's irreparably "bad" and so what's being surfaced as a Zeek error is 100% accurate, hence my preference to keep that one.

I did, however, keep the idea from the deleted test of specifying the increased timeouts as a multiple of 60 seconds. 😄

This Actions run shows how it was failing before these changes, and this Actions run shows it working again with the branch for this PR.

@philrz philrz requested a review from jameskerr January 24, 2024 02:15
@philrz philrz self-assigned this Jan 24, 2024
@philrz philrz merged commit 61f25a1 into main Jan 24, 2024
4 checks passed
@philrz philrz deleted the consolidate-pcap-tests branch January 24, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants