mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-04-16 23:08:38 +02:00
possible fix permission issues and fix thread timing issues (#6061)
# Description of Changes <!-- Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --> --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### Translations (if applicable) - [ ] I ran [`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing) for more details.
This commit is contained in:
@@ -340,6 +340,8 @@ capture_file_list() {
|
||||
-not -path '*/tmp/hsperfdata_stirlingpdfuser/*' \
|
||||
-not -path '*/tmp/hsperfdata_root/*' \
|
||||
-not -path '*/tmp/stirling-pdf/jetty-*/*' \
|
||||
-not -path '*/tmp/stirling-pdf/lu*' \
|
||||
-not -path '*/tmp/stirling-pdf/tmp*' \
|
||||
-not -path '/tmp/lu*' \
|
||||
-not -path '*/tmp/*/user/registrymodifications.xcu' \
|
||||
-not -path '/app/stirling.aot' \
|
||||
@@ -369,8 +371,10 @@ capture_file_list() {
|
||||
-not -path '*/tmp/hsperfdata_root/*' \
|
||||
-not -path '*/tmp/stirling-pdf/hsperfdata_stirlingpdfuser/*' \
|
||||
-not -path '*/tmp/stirling-pdf/jetty-*/*' \
|
||||
-not -path '/tmp/lu*' \
|
||||
-not -path '/tmp/tmp*' \
|
||||
-not -path '*/tmp/stirling-pdf/lu*' \
|
||||
-not -path '*/tmp/stirling-pdf/tmp*' \
|
||||
-not -path '*/tmp/lu*' \
|
||||
-not -path '*/tmp/tmp*' \
|
||||
-not -path '/app/stirling.aot' \
|
||||
-not -path '*/tmp/stirling.aotconf' \
|
||||
-not -path '*/tmp/aot-*.log' \
|
||||
@@ -898,6 +902,36 @@ main() {
|
||||
passed_tests+=("Stirling-PDF-Regression $CONTAINER_NAME")
|
||||
else
|
||||
echo "WARNING: Unexpected temporary files detected after behave tests!"
|
||||
|
||||
# Save temp file failure details to a log for the test report
|
||||
local tempfile_log="$REPORT_DIR/temp-files-failure.log"
|
||||
{
|
||||
echo "=== Temp File Regression Failure ==="
|
||||
echo "Container: $CONTAINER_NAME"
|
||||
echo ""
|
||||
echo "=== Before snapshot ==="
|
||||
cat "$BEFORE_FILE" 2>/dev/null || echo "(empty)"
|
||||
echo ""
|
||||
echo "=== After snapshot ==="
|
||||
cat "$AFTER_FILE" 2>/dev/null || echo "(empty)"
|
||||
echo ""
|
||||
echo "=== Diff (new/changed files) ==="
|
||||
cat "$DIFF_FILE" 2>/dev/null || echo "(empty)"
|
||||
echo ""
|
||||
echo "=== Leftover temp files ==="
|
||||
cat "${DIFF_FILE}.tmp" 2>/dev/null || echo "(none found)"
|
||||
echo ""
|
||||
echo "=== Docker logs ==="
|
||||
docker logs "$CONTAINER_NAME" 2>&1 | tail -200
|
||||
} > "$tempfile_log" 2>/dev/null || true
|
||||
|
||||
# Copy snapshots to report dir for artifact upload
|
||||
cp "$BEFORE_FILE" "$REPORT_DIR/" 2>/dev/null || true
|
||||
cp "$AFTER_FILE" "$REPORT_DIR/" 2>/dev/null || true
|
||||
cp "$DIFF_FILE" "$REPORT_DIR/" 2>/dev/null || true
|
||||
cp "${DIFF_FILE}.tmp" "$REPORT_DIR/files_diff_tmp_matches.txt" 2>/dev/null || true
|
||||
|
||||
test_failure_logs["Stirling-PDF-Regression-Temp-Files"]="$tempfile_log"
|
||||
failed_tests+=("Stirling-PDF-Regression-Temp-Files")
|
||||
fi
|
||||
passed_tests+=("Stirling-PDF-Regression $CONTAINER_NAME")
|
||||
|
||||
Reference in New Issue
Block a user