Refactor and improve timeline testing infrastructure#86
Merged
Conversation
Contributor
|
Regarding the new testing plan - I'd previously written up docs in https://github.com/sot/arc/wiki/Set-up-test-Replan-Central for working in a HEAD dev conda environment to test. I'm wondering if maybe make_timeline.py should just have a link to the arc wiki and have a new section for the doing more atomic testing of make_timeline.py or just a link indicating the other docs to test the whole package do exist. |
Member
Author
|
@jeanconn - I added a link to the wiki page for full testing of replan central code. |
jeanconn
reviewed
Nov 29, 2024
jeanconn
approved these changes
Nov 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This improves the code structure for
make_timeline.pyand establishes a process for testing.Highlights:
--test), input data file paths are hardwired to various paths available on HEAD--test), input data files must all be in the directory defined by--data-dir(defaultt_now).--data-dirdirectory.main()into smaller drawing functions. This addresses a longstanding TODO, made easy now with VS code.Interface impacts
None
Functional testing
On HEAD @ cf7febe
Followed the steps outlined in
make_timeline.pyfor testing on HEAD. This was done with cf7febe. The only changes after that point are documentation or 55cc376 which does not impact the HEAD testing since the--test-get-weboption is not used.After the processing steps, the output timeline states are identical:
HTML page outputs:
Local @ 55cc376
Followed the steps outlined in
make_timeline.pyfor local testing on Mac. This was done with 55cc376. The only changes after that point are documentation or adding two test utility scripts.After the processing steps, the output timeline states are nearly identical:
I'm not 100% sure of the reason for the diff but I suspect that the ACIS fluence page updated in the middle of the test. The change in
p3_avg_now(which comes from the ACIS fluence page) would propagate to a small change influencewhich is the predicted fluence assuming constantp3_avg_nowflux. There are hundreds of states with a dozen state keys each, and they all match exactly except for this one.The output web pages and
timeline.pngfor theflightand$COMMITcases are visually identical.