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

add github action for tests #275

Merged
merged 1 commit into from Aug 24, 2023
Merged

add github action for tests #275

merged 1 commit into from Aug 24, 2023

Conversation

wpoely86
Copy link
Member

@wpoely86 wpoely86 commented Dec 14, 2022

@jrha jrha added this to the 22.12 milestone Dec 14, 2022
@jrha
Copy link
Member

jrha commented Dec 15, 2022

Hmm, odd.

src/test/perl/filewriter-notmocked.t

This looks like another undefined value problem as seen elsewhere:

#   Failed test 'old-style exception thrown'
#   at src/test/perl/filewriter-notmocked.t line 161.
Can't call method "text" on an undefined value at src/test/perl/filewriter-notmocked.t line 162.

src/test/perl/path.t

These seem to be failing because they can do things they shouldn't be able to.

not ok 235 - temp directory on parent without permissions returns undef on failure tempdir
#   Failed test 'temp directory on parent without permissions returns undef on failure tempdir'
#   at src/test/perl/path.t line 657.
#   Failed test '_reset_exception_fail called 2 times after temp directory creation failure NoAction=0 permission'
#   at /__w/CAF/CAF/src/test/perl/modules/exception_helper.pm line 61.
#          got: '3'
#     expected: '2'
# VERBOSE Moved target/test/check/move1/src to target/test/check/move2/dst: 1
# DEBUG: 1 Moved src target/test/check/move1/src to dest target/test/check/move2/dst

#   Failed test 'move src target/test/check/move1/src to dest target/test/check/move2/dst w/o backup failed no permission to move src to dest (destdor exists)'
#   at src/test/perl/path.t line 898.
#   Failed test 'move src target/test/check/move1/src to dest target/test/check/move2/dst with backup '.old' failed no permission to make backup of dest'
#   at src/test/perl/path.t line 910.
#   Failed test '_reset_exception_fail called 3 times after move failure to cleanup dest with backup'
#   at /__w/CAF/CAF/src/test/perl/modules/exception_helper.pm line 61.
#          got: '1'
#     expected: '3'

@jrha
Copy link
Member

jrha commented Jul 12, 2023

@wpoely86 can you try this one on rockylinux:8 as well?

@wpoely86
Copy link
Member Author

@wpoely86 can you try this one on rockylinux:8 as well?

Done. Output can be followed in my fork: https://github.com/wpoely86/CAF/actions

jrha
jrha previously approved these changes Aug 23, 2023
Copy link
Member

@jrha jrha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more I stare at the test output, the more I think that the failures are more to do with how the tests are written. Given that failing tests are better than not running tests, perhaps it would be better to merge this and figure it out as we go.

@stdweird
Copy link
Member

@wpoely86 can you add in filewriter-notmocked.t before the open on L157

diag "EC pre $testdir";
diag `ls -l "$testdir"`, `mount`;
diag explain $EC, " error ", explain $EC->error();

and also after the close? (but with post instead of pre).

@stdweird
Copy link
Member

@jrha i suspect some other odd behaviour with filesystem in use (/__w/). the file-not-mocked one should really fail

@stdweird
Copy link
Member

@jrha @wpoely86 the unittests run as root apparently (wwwwhhaaaaattttt ?). anyway, root doesn't care about permission limits so no errors. can you somehow fix this?

@wpoely86
Copy link
Member Author

All seems well now: https://github.com/wpoely86/CAF/actions

Copy link
Member

@jrha jrha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thankyou.

@jrha jrha merged commit 071fe5e into quattor:master Aug 24, 2023
@wpoely86 wpoely86 deleted the gh_action branch August 25, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants