Skip to content

feat: include additional run information in lava file output - #1661

Merged
JamesHabben merged 3 commits into
abrignoni:mainfrom
JamesHabben:feat/update-run-output
Aug 10, 2026
Merged

feat: include additional run information in lava file output#1661
JamesHabben merged 3 commits into
abrignoni:mainfrom
JamesHabben:feat/update-run-output

Conversation

@JamesHabben

@JamesHabben JamesHabben commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

finalize and close #1209

added info for:

  • modules selected to run
    • name
    • status (complete, no files found, error, etc)
    • artifact name
    • file found count
  • if profile loaded, name of profile
  • add artifact key/function name to artifact list

@JamesHabben

Copy link
Copy Markdown
Collaborator Author

added LAVA_SCHEMA_VERSION = 2 to this pr for better version handling in lava down the road as we make other schema updates

@JamesHabben JamesHabben added LEAPP Core Update related to LEAPP core framework Needs Cross Core Leveling for a PR that needs to be applied across other cores. remove once leveled to all. labels Jul 22, 2026
abrignoni added a commit that referenced this pull request Jul 26, 2026
…uches

CI lints every changed Python file with warnings fatal, so touching a core
file means inheriting whatever debt it already carries. ileapp.py,
scripts/ilapfuncs.py and scripts/lavafuncs.py each carried enough to fail the
gate on their own: PRs #1280, #1661 and #1719 are all currently red for this
reason, #1719 while changing nothing but lavafuncs.py.

Real fixes:
  - drop 13 global declarations that never assign the name
  - codecs.open -> open(encoding=...) for the TSV writer; codecs.open is
    deprecated and the utf-8-sig BOM behaviour is unchanged (verified against
    a before/after run)
  - bare except -> except (ValueError, TypeError) on the two json.load calls,
    which is what they were guarding
  - raise ... from ex when rejecting an unknown timezone, plus the stray
    six-space indent on that line
  - drop an unused local that shadowed datetime.timezone, and an unused
    exception binding
  - two f-strings with nothing to interpolate

Suppressed with a reason rather than changed:
  - the backward-compatibility re-export block in ilapfuncs.py. Its own
    comment says those names are kept so older imports keep resolving, so
    unused-import does not apply. The same goes for re, codecs and leapp_name.
  - the three wildcard imports in ileapp.py. Both ileapp.py and ileappGUI.py
    resolve a large surface through them; unpicking that is a refactor of the
    entry point, not lint cleanup.
  - two deliberate catch-alls that log the traceback and keep going.
  - the global statement in initialize_lava, which is the one function that
    creates those module level singletons.
  - a TODO comment, reworded so pylint's fixme check stops failing the build
    over a note.

All four files now rate 10.00/10. A full run over the same extraction
produces byte-identical results: 0 errors, 50 populated LAVA tables, 29,615
rows, and the TSV files still carry their BOM.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@JamesHabben

Copy link
Copy Markdown
Collaborator Author

@JamesHabben
JamesHabben merged commit 7ef72c1 into abrignoni:main Aug 10, 2026
6 checks passed
@JamesHabben
JamesHabben deleted the feat/update-run-output branch August 10, 2026 23:08
@JamesHabben JamesHabben removed the Needs Cross Core Leveling for a PR that needs to be applied across other cores. remove once leveled to all. label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LEAPP Core Update related to LEAPP core framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

include more run information in lava json file

1 participant