Skip to content

Commit

Permalink
Test everything always
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichofer committed Sep 30, 2024
1 parent 19b45f4 commit dbad05f
Show file tree
Hide file tree
Showing 12 changed files with 163 additions and 537 deletions.
20 changes: 9 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ pipeline {
}
post {
always {
archiveArtifacts artifacts: 'log/**/*.log', allowEmptyArchive: true
withCredentials([string(credentialsId: 'd976fe24-cabf-479e-854f-587c152644bc', variable: 'GITHUB_AUTH_TOKEN')]) {
sh """
source env/bin/activate
python3 src/report_tests.py --auth_token ${GITHUB_AUTH_TOKEN} --build_id ${BUILD_ID} --issue_id ${ghprbPullId}
"""
}
sh """
python3 tools/summarize_logs.py || true
"""
archiveArtifacts artifacts: 'log/*', allowEmptyArchive: true
deleteDir()
}
}
Expand All @@ -35,9 +32,8 @@ pipeline {
stage('Unit Tests') {
steps {
sh """
mkdir -p log/${NODENAME}/unit_test
source env/bin/activate
python3 test/unit_test.py ${NODENAME} > log/${NODENAME}/unit_test/summary.log 2>&1
python3 test/unit_test.py
"""
}
}
Expand All @@ -54,14 +50,16 @@ pipeline {
steps {
sh """
source env/bin/activate
pytest -v -n auto --scope \"""" + env.ghprbCommentBody + " \" test/integration_test.py"
pytest -v -n auto test/integration_test.py
"""
}
}
stage('System Tests') {
steps {
sh """
source env/bin/activate
pytest -v -n auto --maxprocesses=24 --scope \"""" + env.ghprbCommentBody + " \" test/system_test.py"
pytest -v -n auto test/system_test.py
"""
}
}
}
Expand Down
34 changes: 0 additions & 34 deletions src/format.py

This file was deleted.

87 changes: 0 additions & 87 deletions src/github.py

This file was deleted.

90 changes: 0 additions & 90 deletions src/report_tests.py

This file was deleted.

34 changes: 0 additions & 34 deletions src/scope.py

This file was deleted.

70 changes: 0 additions & 70 deletions src/spack_commands.py

This file was deleted.

Empty file removed test/__init__.py
Empty file.
Loading

0 comments on commit dbad05f

Please sign in to comment.