Add more tests for AthConfigFlag hashing, fix bug from !68913
The config flag hashing wasn't properly accounting for changes introduced in !68913 (merged).
I'm fixing this in the hash function.
Details
What I would expect:
-
clone
d flags, with the same content, hash identically to the original -
cloneAndReplace
d flags should hash differently from the original, and any clones of the original
What I see without calling loadAllDynamicFlags
:
- clone and deepcopy hash identically
- calling
cloneAndReplace
on flags changes the hash - calling
clone
again (on the original flags) after this and hashing gives odd results:- it hashes identically to the
cloneAndReplace
flags - it hashes differently from the original cloned flags
- it hashes identically to the
Apparently the last case is expected because cloneAndReplace
will load some flags and change the hash.
If instead I call loadAllDynamicFlags
on each flag object, I get more weird results:
- clone and deepcopy hash identically
- calling
cloneAndReplace
does not change the hash on the returned object - calling
clone
again (on the original flags) after this and hashing gives the same hash as the original
There are still some odd things going on but this fixes the more serious ones, see !69786 (closed).
Merge request reports
Activity
FYI @tbold, this one too
mentioned in merge request !69729 (merged)
mentioned in merge request !69786 (closed)
- Resolved by Tomasz Bold
added full-unit-tests label
added 24.0 Core review-pending-level-1 labels
- Resolved by Dan Guest
CI Result FAILURE (hash f0c9db65)Athena AthSimulation externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 0
AthSimulation: number of compilation errors 0, warnings 0
For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 6375] (remote access info)
added 1 commit
- 82fe1535 - test 1: remove dynamic flag loading before hash
- Resolved by Dan Guest
CI Result SUCCESS (hash fb89bdec)Athena AthSimulation externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 1
AthSimulation: number of compilation errors 0, warnings 1
For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 6386] (remote access info) CI Result SUCCESS (hash 82fe1535)Athena AthSimulation externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 0
AthSimulation: number of compilation errors 0, warnings 0
For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 6385] (remote access info)added review-user-action-required label and removed review-pending-level-1 label
added 1 commit
- e845c2b5 - Revert "test 2: use old hash, disable some tests"
added full-integration-tests label
added bugfix label
added review-pending-level-1 label and removed review-user-action-required label
CI Result SUCCESS (hash e845c2b5)Athena AthSimulation externals cmake make tests Full details available on this CI monitor view. Check the JIRA CI status board for known problems
Athena: number of compilation errors 0, warnings 0
AthSimulation: number of compilation errors 0, warnings 0
For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 6401] (remote access info)removed review-pending-level-1 label
added review-approved label
added review-approved-tier0 label
mentioned in commit db8e6c59
mentioned in merge request !69851 (merged)
mentioned in merge request easyjet/easyjet!561 (merged)