diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 67da52f8524..a445445cdc8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -10,7 +10,7 @@ on:
permissions:
contents: write # Grant write permissions for contents
- checks: write # Grant write permissions for checks
+ checks: write # Grant write permissions for checks, only effective on push
pull-requests: write # Explicitly grant write permissions for pull requests
jobs:
@@ -34,56 +34,57 @@ jobs:
run: chmod +x scripts/run_commit_tests.sh
- name: Run Shell Script to Generate Input File
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
run: |
./scripts/run_commit_tests.sh
- name: Run JUnit Report Generation Script
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
run: |
python scripts/into_junit.py /tmp/SHARED.UNITS > junit.xml
- name: Convert JUnit XML to Standard HTML Report
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
run: |
junit2html junit.xml junit-standard-report.html
- name: Convert JUnit XML to Matrix HTML Report
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
run: |
junit2html --report-matrix junit.xml junit-matrix-report.html
- name: Upload JUnit XML Report
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: junit-report
path: junit.xml
- name: Upload Standard HTML Report
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: junit-standard-html-report
path: junit-standard-report.html
- name: Upload Matrix HTML Report
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: junit-matrix-html-report
path: junit-matrix-report.html
- name: Display JUnit Test Results
+ if: github.event_name == 'push' # Only run this step on pushes to main
uses: dorny/test-reporter@v1
with:
name: 'JUnit Results'
path: 'junit.xml'
reporter: 'java-junit'
- fail-on-error: false # Do not fail the job if tests fail
+ fail-on-error: false
- name: Download Previous JUnit Results
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
uses: actions/download-artifact@v3
with:
name: junit-report
@@ -98,7 +99,7 @@ jobs:
reportgenerator -reports:"previous-junit.xml;junit.xml" -targetdir:"./comparison-report" -reporttypes:"HtmlSummary;HtmlChart"
- name: Upload JUnit Comparison Report
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: junit-comparison-html-report
@@ -124,7 +125,7 @@ jobs:
allure generate --clean --output ./allure-report ./allure-results
- name: Upload Allure Report as Artifact
- continue-on-error: true # extra: Continue even if this step fails
+ continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: allure-html-report
diff --git a/hyperon-wam.vpj b/hyperon-wam.vpj
index 6f69f5b90ba..d4f4feaa7ca 100755
--- a/hyperon-wam.vpj
+++ b/hyperon-wam.vpj
@@ -107,6 +107,54 @@
Excludes=".git/;*.metta.html;*.bak;build/;.*/;*~*/"
L="1"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Test Report\n\n{test_res}\n]]>"
+
if status == "PASS":
# If the test passed, add system-out with a clickable link and details
system_out = ET.SubElement(testcase, "system-out")
- system_out.text = f"Test Report\n\nAssertion: {stdout}\nExpected: {expected}\nActual: {got}\n]]>"
+ system_out.text = sys_out_text
else: # status == "FAIL"
# If the test failed, add a failure element with details and a clickable link
failure_message = f"Test failed: Expected '{expected}' but got '{got}'"
failure = ET.SubElement(testcase, "failure", message=failure_message, type="AssertionError")
- failure.text = f""
+ failure.text = f"AssertionError: {failure_message}"
system_out = ET.SubElement(testcase, "system-out")
- system_out.text = f"Test Report\n\nAssertion: {stdout}\nExpected: {expected}\nActual: {got}\n]]>"
+ system_out.text = sys_out_text
return testcase