-
Notifications
You must be signed in to change notification settings - Fork 205
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
docker: Upgrade container packages before running tests #1748
docker: Upgrade container packages before running tests #1748
Conversation
But i would rather drop the cpanm mechanisms to make it fail when trying to upgrade packages, it's rather annoying than useful |
…point while running tests
Codecov Report
@@ Coverage Diff @@
## master #1748 +/- ##
==========================================
- Coverage 80.91% 67.22% -13.7%
==========================================
Files 139 123 -16
Lines 9679 9021 -658
==========================================
- Hits 7832 6064 -1768
- Misses 1847 2957 +1110
Continue to review full report at Codecov.
|
99f8d58
to
3d853a5
Compare
f7fb502
to
45b603a
Compare
- add UPGRADE_FROM_ZYPPER
a10be1b
to
c15d3e9
Compare
The errors in the CI are gone when #1747 is applied, but it's hanging on developer mode tests https://travis-ci.org/mudler/openQA/jobs/416778791 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still needs some improvements, but lets start to move on
cpanm -n --mirror http://no.where/ --installdeps . | ||
[ "$INSTALL_FROM_CPAN" -eq 1 ] && \ | ||
(cpanm --local-lib=~/perl5 local::lib && cpanm -n --installdeps . ) || \ | ||
cpanm -n --mirror http://no.where/ --installdeps . | ||
if ! [ $? -eq 0 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, if INSTALL_FROM_CPAN is not set, the exit of the cd that is previous is what's evaluated right?... I think we can remove then the check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, will address this in another PR
|
||
echo ">> Running tests" | ||
|
||
dbus-run-session -- sh -c "$*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
We need something like this - or either rebuild the docker image more frequently (assuming that it's upgrading packages during docker build phase).
This is for a later discussion @foursixnine, just opening the PR just to give a rough idea of what we do already in os-autoinst (but there we rebuild the docker image each time, not here, thus tests will fail anyway).