Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[develop] Move all unittest tests to a common area. #728

Merged
merged 25 commits into from
May 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
572b541
Move first unittest to shared location.
christinaholtNOAA Apr 12, 2023
a3fc81e
Adding another batch.
christinaholtNOAA Apr 12, 2023
f8b84c2
Moving another batch.
christinaholtNOAA Apr 12, 2023
9a55a1a
Moving another batch of tests.
christinaholtNOAA Apr 12, 2023
558d864
Moving the last set of tests.
christinaholtNOAA Apr 12, 2023
e5bbda3
Use tempfile package for easy cleanup
christinaholtNOAA Apr 12, 2023
28f39ee
Fix the relative paths after the test file moved.
christinaholtNOAA Apr 12, 2023
b2cb415
Missed a file.
christinaholtNOAA Apr 12, 2023
505808e
Linting and cleaning up a bit.
christinaholtNOAA Apr 12, 2023
fa7f6b2
Making the tests run.
christinaholtNOAA Apr 13, 2023
9c6bcb8
Update GitHub Actions.
christinaholtNOAA Apr 13, 2023
878f93a
Add Jenkins test to run the HPSS tests on jet/hera.
christinaholtNOAA Apr 13, 2023
4f35d17
Linting.
christinaholtNOAA Apr 13, 2023
500afce
Linting
christinaholtNOAA Apr 13, 2023
e7855b2
Adding a new github task to lint code that's already linted
christinaholtNOAA Apr 13, 2023
52b82e8
Tell the tests where the code is.
christinaholtNOAA Apr 13, 2023
73d7b00
Make pylint consistent with version on Hera.
christinaholtNOAA Apr 13, 2023
d020ff5
Addressing Jenkins test failures.
christinaholtNOAA Apr 21, 2023
744698c
Remove parallel section.
christinaholtNOAA Apr 24, 2023
cd6115f
Merge remote-tracking branch 'origin/develop' into move_unittests
christinaholtNOAA Apr 28, 2023
8971e22
Fix a wrapping issue.
christinaholtNOAA Apr 28, 2023
4850943
Update .cicd/scripts/srw_unittest.sh
christinaholtNOAA May 3, 2023
cf42842
Update .cicd/scripts/srw_unittest.sh
christinaholtNOAA May 3, 2023
f502547
Make changes to script found in debugging.
christinaholtNOAA May 3, 2023
23623c4
Change the call to unittest here.
christinaholtNOAA May 3, 2023
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
Prev Previous commit
Next Next commit
Remove parallel section.
  • Loading branch information
christinaholtNOAA committed Apr 24, 2023
commit 744698c28a0c6fcfddc97e7e283918f80dbf0a22
34 changes: 16 additions & 18 deletions .cicd/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,26 +122,24 @@ pipeline {
}
}

parallel{
// Run the unittest functional tests that require an HPC platform
stage('Functional Tests') {
steps {
echo "Running unittest on retrieve_data.py"
sh 'bash --login "${WORKSPACE}/.cicd/scripts/srw_unittest.sh"'
}
// Run the unittest functional tests that require an HPC platform
stage('Functional Tests') {
steps {
echo "Running unittest on retrieve_data.py"
sh 'bash --login "${WORKSPACE}/.cicd/scripts/srw_unittest.sh"'
}
}
// Run the unified build script; if successful create a tarball of the build and upload to S3
stage('Build') {
steps {
echo "Building SRW (${env.SRW_COMPILER}) on ${env.SRW_PLATFORM} (using ${env.WORKSPACE})"
sh 'bash --login "${WORKSPACE}/.cicd/scripts/srw_build.sh"'
}
// Run the unified build script; if successful create a tarball of the build and upload to S3
stage('Build') {
steps {
echo "Building SRW (${env.SRW_COMPILER}) on ${env.SRW_PLATFORM} (using ${env.WORKSPACE})"
sh 'bash --login "${WORKSPACE}/.cicd/scripts/srw_build.sh"'
}

post {
success {
sh 'cd "${WORKSPACE}/${INSTALL_NAME}" && tar --create --gzip --verbose --file "${WORKSPACE}/${BUILD_NAME}.tgz" *'
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: true, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "${env.BUILD_NAME}.tgz", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false], [bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: true, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "build_${env.SRW_COMPILER}/srw_build-${env.SRW_PLATFORM}-${env.SRW_COMPILER}.txt", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 'main', userMetadata: []
}
post {
success {
sh 'cd "${WORKSPACE}/${INSTALL_NAME}" && tar --create --gzip --verbose --file "${WORKSPACE}/${BUILD_NAME}.tgz" *'
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: true, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "${env.BUILD_NAME}.tgz", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false], [bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: true, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "build_${env.SRW_COMPILER}/srw_build-${env.SRW_PLATFORM}-${env.SRW_COMPILER}.txt", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 'main', userMetadata: []
}
}
}
Expand Down