Skip to content

Conversation

@simsong
Copy link
Owner

@simsong simsong commented Feb 12, 2025

Now let's see this run in GitHub Actions

juliapal and others added 30 commits May 2, 2023 14:39
…rmance regression. The timings below are from the following command:

./src/bulk_extractor -F ../lightgrep/pytest/keys/shuf10.txt -Z -o ~/be_timed_output_without_thread_local_`printf %04d $i` -E scan_lightgrep ~/ev/terry-2009-12-11-002.E01

Thread_local?	Clocktime (Min.)	Clocktime (Max.)	Clocktime (Average)	Scan Lightgrep Time (Min.)	Scan Lightgrep Time (Max.)	Scan Lightgrep Time (Average)
FALSE	162.965479	168.628229	164.2545712	494.810946	528.368114	504.1799554
TRUE	163.681386	173.587754	167.233617	499.815450	532.324335	516.4901762

This reverts commit 0ca43ec.
@jonstewart
Copy link
Collaborator

Ah, with the build failure, I don't think we tried running make distdir-am, probably just plain old make. Nice to have automated tests!

@jonstewart
Copy link
Collaborator

The most significant thing that's changed is we now have a full release of lightgrep v1.5, available here: https://github.com/strozfriedberg/lightgrep/releases/tag/1.5.0

We can change Makefile.am to fix the distdir-am target and whatever comes afterwards. We'll also adjust the CONFIGURE_ scripts to pull lightgrep v1.5.0 from the above URL. With the CONFIGURE_ scripts, is there some way to add commonality to all of them?

@simsong I would appreciate it if you could look at the diff for scan_lightgrep.cpp, as the typical scanner setup and usage is what I'm most unsure of.

@simsong
Copy link
Owner Author

simsong commented Feb 12, 2025 via email

@simsong
Copy link
Owner Author

simsong commented Feb 12, 2025 via email

const char* contentsCStr = contents.c_str();
// Add all the patterns from the files in one fell swoop
if (lg_add_pattern_list(Fsm, PatternInfo, contentsCStr, itr->c_str(), DefaultEncodingsCStrings, 2, &opts, &err) < 0) {
if (lg_add_pattern_list(Fsm, contentsCStr, itr.c_str(), DefaultEncodingsCStrings, NumDefaultEncodings, &opts, &err) < 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg_add_pattern_list() seems able to return -1 without populating the error chain, so this function can return false without printing a more descriptive error message.

lg_add_pattern_list() needs more unit testing in lightgrep...

@simsong simsong marked this pull request as draft March 12, 2025 18:24
@simsong
Copy link
Owner Author

simsong commented Mar 12, 2025

@jonstewart - I've converted this to a draft until the crashing issue is resolved.

@jonstewart
Copy link
Collaborator

jonstewart commented Mar 20, 2025

I believe I have a fix for lightgrep as a PR at strozfriedberg/lightgrep#11. It may need a little more work for cleanup—unsurprising that a stupid oversight bug is hanging out in fiddly code. Once the PR is merged, I'll tag a v1.5.1 release of lightgrep for this PR to target.

@simsong can you provide some guidance about the various build scripts? do you have them all automated with github actions? In particular, what's needed to make a Windows build?

@simsong
Copy link
Owner Author

simsong commented Mar 20, 2025 via email

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.

5 participants