Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ jobs:
with:
app_path: build/package
included_tags: ${{ matrix.tags }}

- name: upload-manual-check-appinspect
uses: actions/upload-artifact@v4
if: always()
with:
name: appinspect-api-html-report-${{ matrix.tags }}
path: appinspect_result.json
psa-test:
runs-on: ubuntu-22.04
needs:
Expand Down
6 changes: 6 additions & 0 deletions additional_packaging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from os import path
import shutil


def additional_packaging(addon_name: str) -> None:
Expand All @@ -16,3 +17,8 @@ def additional_packaging(addon_name: str) -> None:
return_code = os.system(build_ui_script)
if return_code != 0:
os._exit(os.WEXITSTATUS(return_code))

lib_dir = f"output/{addon_name}/appserver/static/js/lib"
print(f"Removing {lib_dir}", path.exists(lib_dir), path.isdir(lib_dir))
if path.exists(lib_dir) and path.isdir(lib_dir):
shutil.rmtree(lib_dir)
1 change: 1 addition & 0 deletions appinspect_result.json

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions package/appserver/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
~ Copyright 2025 Splunk Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<%! app_name = cherrypy.request.path_info.split('/')[3] %>\
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>${_('Loading')}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
</head>

<body>
<script src="${make_url('/config?autoload=1')}" crossorigin="use-credentials"></script>
<script src="${make_url('/static/js/i18n.js')}"></script>
<script src="${make_url('/i18ncatalog?autoload=1')}"></script>
<script>
__splunkd_partials__ = ${json_decode(splunkd)};
</script>

<% page_path = "/static/app/" + app_name + "/js/build/entry_page.js" %>

<script type="module" src="${make_url(page_path)}"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest-splunk-addon==5.4.1
splunk-add-on-ucc-framework==5.58.0
splunk-add-on-ucc-framework==5.65.0
2 changes: 1 addition & 1 deletion scripts/build_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ else
npm --prefix "$SCRIPT_DIR/../ui" install
fi

npm --prefix "$SCRIPT_DIR/../ui" run build
npm --prefix "$SCRIPT_DIR/../ui" run ucc-gen
Loading