-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Speed up CI tests #1025
Speed up CI tests #1025
Conversation
Great to see some of this moving along! One question I had was about replacing |
Codecov Report
@@ Coverage Diff @@
## main #1025 +/- ##
==========================================
- Coverage 72.57% 72.54% -0.04%
==========================================
Files 364 355 -9
Lines 46816 46422 -394
==========================================
- Hits 33978 33675 -303
+ Misses 12838 12747 -91
Continue to review full report at Codecov.
|
Sorry, I'm not sure I understand the issue as it relates to this PR. Are you saying that if I were to substitute |
Correct. My own attempt in the conversion runs without errors, but the |
f5ed357
to
5ae11d8
Compare
Would it be possible to add d3ee682 as a separate PR? This part of CI apparently broke yesterday, and it would be good if it were available for anyone else to rebase to. |
Use YAML input format to avoid repeated calls ctml_writer
Blessed output file changed because of addition of N2 to h2o2.yaml
The CTI and XML files in test/data are still in use for tests of the conversion process. fixup! [Test] Transition use to pdep-test.yaml
Use to speed up CI coverage testing
The default phase definition for gri30.yaml and h2o2.* includes a transport model, and setting this slows down tests that don't need transport properties. For any tests changed, also switch to using the YAML versions of these input files. The addition of N2 to h2o2.yaml, along with one reaction, means that some indices had to change. This also uncovered a bug in the Gibbs equilibrium solver, which is documented in Cantera#1023.
Species are added before phase-specific parameters like site density are set. Adding the species sets their coverages, which uses the site density. Therefore, the initial value for the site density needs to be non-zero. This only affected the specific SurfPhase constructor, not methods which use ThermoFactory, since in that case the default constructor for SurfPhase gets called, which does set a non-zero site density.
For the case where a Quantity has a converter lambda function, replacing the converted value has to be done carefully to avoid accessing already-deleted memory.
Explicit tests of parsing/conversion should remain until removal of CTI/XML formats.
More consistent with the methods of standard library containers
If the phase is being created from a YAML input file, both the excess-enthalpy and product-species fields must be provided in that input.
The test IonsFromNeutralConstructor.fromXML test is made redundant by the combination of ctml2yamlTest.test_mock_ion (which include instantiation from an XML file) and ThermoFromYaml.IonsFromNeutral (which instantiates an identical phase from a YAML input file).
These reactions were unintentionally relying on having been created from YAML when serializing to YAML, where the "type" field from the input is retained by default.
fixup! [Test] Replace XML with YAML in gtest equilibrium solver tests
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.
This looks good to me.
Changes proposed in this pull request
Transport
objects during tests that usegri30
andh2o2
mechanisms.Checklist
scons build
&scons test
) and unit tests address code coverage