-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixing search for existing executable testReadWritePayloads #18542
Conversation
A new Pull Request was created by @mrodozov for master. It involves the following packages: CondCore/CondDB @ggovi, @cmsbuild, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
def get_cmssw_file(file_name): | ||
|
||
for i in ['CMSSW_BASE','CMSSW_RELEASE_BASE','CMSSW_FULL_RELEASE_BASE']: | ||
print "Looking for :%s = %s " % (i,os.getenv(i)) |
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.
@mrodozov , please remove this line. It was added just for debugging
@@ -39,6 +46,7 @@ def check_output(*popenargs, **kwargs): | |||
|
|||
# nice one from: | |||
# https://www.daniweb.com/software-development/python/code/216610/timing-a-function-python | |||
|
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.
why this extra line?
Thanks @mrodozov, please cleanup the unnecessary (extra empty lines etc.) changes. |
# we run in the local environment, but need to make sure that we start "top-level" of the devel area | ||
# and we assume that the test was already built | ||
payloadScript = 'test/%s/testReadWritePayloads' % self.arch | ||
cmd = 'export SCRAM_ARCH=%s; cd %s/src; eval `scram runtime -sh 2>/dev/null` ; ' % (os.environ['SCRAM_ARCH'],os.environ['CMSSW_BASE'], ) |
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.
@ggovi , if CMSSW_BASE is set then this means cmsenv is already set, so in this case we do not need to source the env again .... rght?
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.
@smuzaffar
true, but in fact, where it is done again? Not sure I find it...
cmd = 'source %s/cmsset_default.sh; export SCRAM_ARCH=%s; cd %s/src ; eval `scram runtime -sh`; cd - ; ' %(cmsPath,arch,releaseDir) | ||
cmd += "echo 'CMSSW_BASE='$CMSSW_BASE; echo 'RELEASE_BASE='$RELEASE_BASE; echo 'PATH='$PATH; echo 'LD_LIBRARY_PATH='$LD_LIBRARY_PATH;" | ||
cmd += '$LOCALRT/test/%s/testReadWritePayloads %s sqlite_file:///%s/%s ' % (arch, readOrWrite, self.dbDir, dbName) |
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.
@ggovi , here you are setting env for releaseDir (an old release build with old version of boost) and then running $LOCALRT/test/%s/testReadWritePayloads from local dev area ( which is linked against new boost version 1.63).
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.
well I don't know exactly what is going on in this version, since I don't quite understand the function "get_cmssw_file(file_name)".
In the original version, printing $LOCALRT in any of the writing procedure, one obtains the right path, where the executable runs against the correct boost library.
Is it possible to see the log of the failure that triggered these changes?
Removing extra lines
Pull request #18542 was updated. @ggovi, @cmsbuild, @davidlange6 can you please check and sign again. |
After the executable path fix, the test is still failing with : |
cmsbuild, please test |
The tests are being triggered in jenkins. |
-1 Tested at: f6143aa You can see the results of the tests here: I found follow errors while testing this PR Failed tests: UnitTests
I found errors in the following unit tests: ---> test condTestRegression had ERRORS |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
@smuzaffar Thanks, G. |
Ok I've seen the log, It looks that the failing part is the writing/reading by the IB under test. The writing by the reference releases should be ok, it should be not altered. |
@smuzaffar @mrodozov |
@mrodozov |
@ggovi , yes you can re-produce the error. By doign something like
|
Ok, thanks for the recipe and for the hint. I think I have a fix based on your code. I'll do a new PR. |
-1 |
Investigating unit test fail
https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc530/CMSSW_9_1_X_2017-04-28-1100/unitTestLogs/CondCore/CondDB
which fails due to missing executable
/bin/sh: /tmp/cmsbuild/workspace/ib-run-qa/CMSSW_9_1_X_2017-04-28-1100/test/slc6_amd64_gcc530/testReadWritePayloads: No such file or directory
we added some logic to search all possible locations for and not only the local directory in
CondCore/CondDB/test/condTestRegression.py
It's only a partial fix since there are additional problems.
Unit test failing started after this commit
#18495