-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add initial CI #6
Conversation
2a62dac
to
d6700cb
Compare
This PR is in principle ready for a first review. It provides tests for template features (either by running a full build & test, or with smoke tests), and a pre-commit config for linting (when a linter required fixes to existing sources I tried to put that in its own commit). The CI runs in GH which is probably okay since it should finish quickly. It should probably still go in after #2 so I can add additional tests and make linter fixes. Interesting bits:
|
6f8fd62
to
b1e3be2
Compare
I rebased this onto the latest |
When executing `zkg` concurrently multiple updates to the sources can race and destroy each others state. Disable that update. This is a workaround for zeek/package-manager#139.
c5c0ec8
to
28ddc6b
Compare
While figuring out how to make this work against a nightly Zeek I noticed that the new |
0963e2f
to
90f2efb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great, thank you! I only have some minor requests (though see that black
comment).
The only hiccup is that when I run this locally (with Zeek 5.2.0-dev.51
), the features.spicy-packet-analyzer
test errors with:
[#1] tests.availability ... ok
[#2] tests.trace ... failed
% 'zeek -Cr ${TRACES}/raw-layer.pcap ${PACKAGE} /home/christian/devel/zeek/package-template/tests/.tmp/features.spicy-packet-analyzer/test/testing/.tmp/tests.trace/trace.zeek >output' failed unexpectedly (exit code 1)
% cat .stderr
error in /home/christian/devel/zeek/package-template/tests/.tmp/features.spicy-packet-analyzer/test/testing/../scripts/./main.zeek, line 12: unknown identifier PacketAnalyzer::ANALYZER_SPICY_MYANALYZER957136, at or near "PacketAnalyzer::ANALYZER_SPICY_MYANALYZER957136"
1 of 2 tests failed
I'll look into that a bit since I'm noticing it's not failing in CI. Probably just something silly on my machine.
I added some Zeek preprocessor branch to the Spicy packet analyzer template which branches on versions before or after 5.2.0, but your dev snapshot seems to be from before that branch. Somewhere on the 5.2 dev branch I bumped a spicy-plugin change from Robin removes double underscores from packet analyzer names, but your snapshot seems to miss that. |
90f2efb
to
f330885
Compare
f330885
to
227e665
Compare
This flag became deprecated with zee-5.0.0 and went away some time after. Only use it if `zeek-config` actually still supports the flag.
227e665
to
282914d
Compare
Yeah Benjamin it all works now over here too. Thanks! |
Closes #4.