Skip to content

Commit 01e526c

Browse files
chore: add build output log for TAs and its verification (#1840)
**Issue number:** ### PR Type **What kind of change does this PR introduce?** * [ ] Feature * [ ] Bug Fix * [ ] Refactoring (no functional or API changes) * [ ] Documentation Update * [x] Maintenance (dependency updates, CI, etc.) ## Summary Right now even if pipeline [contains error message](https://github.com/splunk/addonfactory-ucc-generator/actions/runs/16296222793/job/46018597916#logs) the job is marked as success. After this change the pipelines should correctly fail when some errors appear. ### Changes Verify if TAs build output were correct or some error occurred. ### User experience N/A ## Checklist If an item doesn't apply to your changes, leave it unchecked. ### Review * [x] self-review - I have performed a self-review of this change according to the [development guidelines](https://splunk.github.io/addonfactory-ucc-generator/contributing/#development-guidelines) * [ ] Changes are documented. The documentation is understandable, examples work [(more info)](https://splunk.github.io/addonfactory-ucc-generator/contributing/#documentation-guidelines) * [x] PR title and description follows the [contributing principles](https://splunk.github.io/addonfactory-ucc-generator/contributing/#pull-requests) * [ ] meeting - I have scheduled a meeting or recorded a demo to explain these changes (if there is a video, put a link below and in the ticket) ### Tests See [the testing doc](https://splunk.github.io/addonfactory-ucc-generator/contributing/#build-and-test). * [ ] Unit - tests have been added/modified to cover the changes * [ ] Smoke - tests have been added/modified to cover the changes * [ ] UI - tests have been added/modified to cover the changes * [ ] coverage - I have checked the code coverage of my changes [(see more)](https://splunk.github.io/addonfactory-ucc-generator/contributing/#checking-the-code-coverage) **Demo/meeting:** *Reviewers are encouraged to request meetings or demos if any part of the change is unclear*
1 parent 2fc2eaa commit 01e526c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ta-tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,14 @@ jobs:
150150
- name: Run ucc-gen build in Target Add-on
151151
working-directory: TA
152152
run: |
153-
poetry run ucc-gen build
153+
poetry run ucc-gen build > build_output.log 2>&1
154+
if tail -n 1 build_output.log | grep -q "^INFO: File creation summary: created: "; then
155+
echo "✓ Build completed successfully with expected output"
156+
cat build_output.log
157+
else
158+
echo "✗ Build did not complete with expected output"
159+
echo "Last line of output should start with 'INFO: File creation summary: created: '"
160+
echo "Full output:"
161+
cat build_output.log
162+
exit 1
163+
fi

0 commit comments

Comments
 (0)