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

adding regression test workflow in container #1635

Merged
merged 47 commits into from
Jun 28, 2024
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ce71e33
add regression test for tutorials
shahzebsiddiqui Dec 8, 2021
e2769e1
error in workflow. Missing 'jobs' keyword
shahzebsiddiqui Dec 8, 2021
3654364
remove keyword 'needs' this was error due to copy/paste since we don'…
shahzebsiddiqui Dec 8, 2021
141cbf4
adding regression test workflow in container
shahzebsiddiqui Sep 29, 2023
0c5a90f
fix typo in github workflow
shahzebsiddiqui Sep 29, 2023
2d61c62
debug workflow
shahzebsiddiqui Sep 29, 2023
7d2526e
try using root user in container
shahzebsiddiqui Sep 29, 2023
a3329f7
debug workflow
shahzebsiddiqui Sep 29, 2023
4a54f64
debug workflow
shahzebsiddiqui Sep 29, 2023
9a1dd86
bump version of checkout to v3
shahzebsiddiqui Sep 29, 2023
facd1ba
debug workflow
shahzebsiddiqui Sep 29, 2023
4495c92
remove --user root
shahzebsiddiqui Sep 29, 2023
077924d
add root user back
shahzebsiddiqui Sep 29, 2023
a7312b3
debug workflow
shahzebsiddiqui Sep 29, 2023
8e5a609
add --user spack
shahzebsiddiqui Sep 29, 2023
ecf4d4c
debug workflow
shahzebsiddiqui Sep 29, 2023
6f278c6
remove checkout step
shahzebsiddiqui Sep 29, 2023
cefc0a7
debug workflow
shahzebsiddiqui Sep 29, 2023
2922457
Merge branch 'regtest_container' of github.com:buildtesters/buildtest…
shahzebsiddiqui Nov 15, 2023
2522d1f
change directory path where virtual environment is created
shahzebsiddiqui Nov 15, 2023
2476336
debug workflow and remove workflow
shahzebsiddiqui Nov 15, 2023
697765f
debug workflow
shahzebsiddiqui Nov 15, 2023
93d2949
debug workflow
shahzebsiddiqui Nov 15, 2023
58b33c3
debug
shahzebsiddiqui Nov 15, 2023
9d7d9c5
debug
shahzebsiddiqui Nov 15, 2023
242b9c3
Merge branch 'devel' into regtest_container
Xiangs18 Jun 14, 2024
5f912a9
check pwd
Xiangs18 Jun 14, 2024
db44cd6
try to fix module command
Xiangs18 Jun 14, 2024
bae652a
display homedir
Xiangs18 Jun 14, 2024
70de043
checkout repo
Xiangs18 Jun 21, 2024
2f6db93
check git version
Xiangs18 Jun 21, 2024
6b33bc5
check git version
Xiangs18 Jun 21, 2024
38837f5
create a workdir
Xiangs18 Jun 21, 2024
38fcf9a
create a temp workdir
Xiangs18 Jun 21, 2024
86dcd6e
log in as root user
Xiangs18 Jun 21, 2024
18e7508
check pip version
Xiangs18 Jun 21, 2024
0b02f81
create an env
Xiangs18 Jun 21, 2024
d82ab0d
remove comments
Xiangs18 Jun 21, 2024
36781d1
Regression test is running
Xiangs18 Jun 21, 2024
56d6431
Merge branch 'devel' into regtest_container
Xiangs18 Jun 21, 2024
cb46278
checkout repo
Xiangs18 Jun 26, 2024
96978c4
revert to v3 versio
Xiangs18 Jun 26, 2024
2d5c919
tag image
Xiangs18 Jun 27, 2024
cf6b4de
add missing shells
Xiangs18 Jun 27, 2024
3039f4b
add shell debug
Xiangs18 Jun 27, 2024
45b4a39
Merge branch 'devel' into regtest_container
Xiangs18 Jun 27, 2024
085b28b
merge devel into regtest
Xiangs18 Jun 27, 2024
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
36 changes: 36 additions & 0 deletions .github/workflows/regressiontest_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Regression Test in Container

on:
pull_request:
branches: [ devel ]

Check failure on line 5 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

5:16 [brackets] too many spaces inside brackets

Check failure on line 5 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

5:22 [brackets] too many spaces inside brackets

jobs:
buildtest_tutorial_container:
runs-on: ubuntu-latest
container:
image: ghcr.io/buildtesters/buildtest_spack:spack-sc23
options: "-it --user root"
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: regression test in container
shell: bash
run: |
set +xe
. /etc/profile
which csh zsh
module load python
python3 -m venv env
source env/bin/activate
export HOMEDIR=`pwd`
export BUILDTEST_CONFIGFILE=$HOMEDIR/buildtest/settings/spack_container.yml

Check warning on line 27 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

27:81 [line-length] line too long (85 > 80 characters)
source $HOMEDIR/setup.sh
python $HOMEDIR/buildtest/tools/unittests.py -c
returncode=$?
if [ $returncode != 0 ]; then exit $returncode; fi

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30

Check failure on line 36 in .github/workflows/regressiontest_container.yml

View workflow job for this annotation

GitHub Actions / style_checks

36:28 [new-line-at-end-of-file] no new line character at the end of file
Loading