Skip to content

chore: import URL Toolbox from splunk/utbox (1.9.5) - #1

Merged
ricardom-splunk merged 54 commits into
mainfrom
chore/import-utbox-history
Nov 20, 2026
Merged

ricardom-splunk merged 54 commits into
mainfrom
chore/import-utbox-history

Conversation

@ricardom-splunk

@ricardom-splunk ricardom-splunk commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

👉 Please ensure your pull request (PR) adheres to our Contribution Guidelines 👈

Pull Request Checklist

Please check if your PR fulfills the following requirements:

  • Testing of all the changes has been performed (for bug fixes / features)
  • The docs/readme.md has been reviewed and updated if needed (for bug fixes / features)
  • Provide release notes as part of the PR submission which describe high level points about the changes
  • Verify all checks are passing
  • Do NOT use the main branch of the forked repo. Create separate feature branch for raising the PR

Pull Request Type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Documentation
  • Other (please describe): Import of an existing app, URL Toolbox (Splunkbase 2734), from https://github.com/splunk/utbox, with its full commit history.

Security Considerations (REQUIRED)

  • Not applicable: the app has no integration with a third-party system. It is a search-time app with external lookups only.

Release Notes (REQUIRED)

Version 1.9.5, see CHANGELOG.md:

  • Declare python.required = 3.13 on all 8 external lookups. Lookup results are unchanged.
  • The project moves to this repository with its full history. The app ID is still utbox.
  • The app follows the organization structure (package/, docs/, tests/, app.manifest) and pipelines.
  • The PDF product guide is replaced by docs/readme.md.

What is the current behavior? (OPTIONAL)

The app lives in splunk/utbox, with its own CI that no longer works (stale AppInspect API credentials, Splunk 7.x/8.2 matrix). The lookups do not declare a Python version, so AppInspect Cloud reports check_transforms_conf_python_required as a failure.

What is the new behavior? (OPTIONAL)

  • The history of splunk/utbox main is merged into this repository (first commit), then the app is adapted to the organization structure in separate commits: fix (1.9.5), ci, style, test, build, docs.
  • AppInspect (cloud, private_app, private_classic, private_victoria) reports 0 failures and 0 errors locally.
  • The lookups behave as before: 138 inputs across the 8 lookup scripts give identical output before and after the lint changes, and a smoke test of all 8 lookups and 3 macros passes on Splunk 10.6.1.1 with the package built the way the org build does it.

Other information (OPTIONAL)

This PR must be merged with a merge commit. Squash would collapse the history into one commit, and rebase drops merge commits and rewrites every SHA. This repository currently allows only squash and rebase, so merge commits need to be enabled temporarily, or the merge done by an admin.

The history was first pushed to the import/main branch, which can be deleted after the merge.

Pay close attention to (OPTIONAL)

  • package/app.manifest is new. The org build reads the app name and version from it, so it must stay in sync with default/app.conf.
  • The Python files were reformatted and linted with the org ruff.toml. No behavior change.
  • The navigation file (default/data/ui/nav/default.xml) has the links the readiness check requires. The app itself is still not visible (is_visible = false).
  • Known behaviors of the presets (digit set, @consonants_up@, @consonants_all@) are documented but not changed.

Context: FDSE-3595.


Thanks for contributing! ❤️

🤖 Generated with Claude Code

ggokdemir and others added 10 commits August 21, 2024 15:58
The unittest job pins Python 3.7, which GitHub's ubuntu-latest runners no
longer provide, so it fails at "Set up Python" before any test runs and
skips the AppInspect and Splunk jobs that depend on it. Use Python 3.13
(matching the python.required value Splunk 10.x expects) and current
checkout/setup-python action versions.

Co-Authored-By: Claude Code <noreply@anthropic.com>
CI: run unit tests on Python 3.13
Brings the full commit history of https://github.com/splunk/utbox (main at 509d864)
into the org scaffold. App files are still in utbox/ and are moved to package/ in a
follow-up.

Conflict resolution:
- README.md: kept the org template (app content is added in the next commit)
- LICENSE: kept utbox's Apache-2.0 text, which has the real copyright notice
- .gitignore: kept the org's and added dist/

Co-Authored-By: Claude Code <noreply@anthropic.com>
Keep the org README blocks (Getting Started, Useful Links) as they are and add the
app sections (installation, usage, troubleshooting, development, acknowledgments).
Move the full reference into docs/readme.md following the org template.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
ricardom-splunk and others added 6 commits November 17, 2026 14:48
- Move the app from utbox/ to package/, as the org build workflow expects. The app ID
  stays utbox.
- Remove the old ci.yml (stale AppInspect API credentials, Splunk 7.x/8.2 matrix) and
  the placeholder package/README.txt.
- Add tests.yml: unit tests on Python 3.13 and a smoke test that runs all 8 lookups and
  3 macros on Splunk 10.0.1 and 9.3.0 (tests/splunk_smoke.sh).
- Add the navigation links required by the org readiness check.
- Update the Makefile, docker-compose.yml and unit test paths; add a CHANGELOG entry.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Splunk 10.x logs a warning for every Python extension point that lacks
python.required and falls back to 3.13. Set python.required = 3.13 on all
8 external lookups in transforms.conf so the interpreter is explicit.

Also remove a stray print() in ut_presets.py that wrote to stdout inside an
external lookup, and convert four regex patterns to raw strings to avoid
invalid-escape warnings on newer Python versions.

No behavior change: lookup output is identical before and after on Splunk
10.6.1.1 and 10.7.0.0, and local/ customizations survive an in-place upgrade.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Add the org's ruff.toml (from splunk-platform-apps/.github, actions/lint) and apply it:
ruff format, unused imports, `is None`, `not in`, f-strings, raw regexes, tabs to spaces,
and renames of local variables that shadowed builtins or were ambiguous (l, max).

No behavior change. A snapshot of 138 inputs across all 8 lookup scripts is identical
before and after, and the unit and Splunk smoke tests pass.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Add tests/conftest.py and tests/pytest.ini as in the org repository structure, write the
unit test in pytest style, and run it with pytest in the Makefile and in tests.yml. The
conftest sets up a temporary SPLUNK_HOME, so no files are created in the repository.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The org build reads the app name and version from package/app.manifest. The ID stays utbox
and the version matches default/app.conf. Validated with slim validate.

Co-Authored-By: Claude Code <noreply@anthropic.com>
…hangelog

Convert the content of the 2016 PDF guide into docs/readme.md following the org template
(URL syntax, lookup and macro reference, list options, custom suffix list, presets), and
verify the examples on a real Splunk. Where the PDF and the code differ, the docs follow
the code (ut_max_suite_digits, the digit set, the consonant presets). Remove the PDF.
Add the 1.9.5 entry to CHANGELOG.md.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@ricardom-splunk ricardom-splunk changed the title chore: import URL Toolbox history from splunk/utbox chore: import URL Toolbox from splunk/utbox (1.9.5) Nov 17, 2026

@edro15 edro15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ricardom-splunk You'll find suggestions, recommendations, comments and one real blocker: the removal of the navigation bar since the app in not visible.

Comment thread .github/workflows/tests.yml Resolved
Comment thread package/default/data/ui/nav/default.xml Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread README.md Resolved
Comment thread docs/readme.md Resolved
Comment thread docs/readme.md Resolved
Comment thread docs/readme.md Resolved
Comment thread docs/readme.md Resolved
Comment thread docs/readme.md Resolved
ricardom-splunk and others added 4 commits November 20, 2026 11:21
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Keep the root README short and point to docs/readme.md, move the macros
under Features, add the lookup name to the macro table, and trim the
1.9.5 changelog entries.

Co-Authored-By: Claude Code <noreply@anthropic.com>
…t connection error

Co-Authored-By: Claude Code <noreply@anthropic.com>
@ricardom-splunk

Copy link
Copy Markdown
Collaborator Author

All review comments are addressed in 4a5f8a6, 840065f and 579d2a2. I also pushed 90aa08e: the Splunk readiness step in tests.yml now keeps polling while Splunk restarts (it failed twice on Splunk 10.0.1 with curl exit 35). All checks are green on 90aa08e. Ready for another look.

@edro15 edro15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ricardom-splunk looks good!

@ricardom-splunk
ricardom-splunk merged commit 17789df into main Nov 20, 2026
16 checks passed
@ricardom-splunk
ricardom-splunk deleted the chore/import-utbox-history branch November 20, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

8 participants