Skip to content
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

PhET-iO Instrumentation checklist #67

Closed
32 tasks done
samreid opened this issue Feb 13, 2018 · 1 comment
Closed
32 tasks done

PhET-iO Instrumentation checklist #67

samreid opened this issue Feb 13, 2018 · 1 comment
Assignees

Comments

@samreid
Copy link
Member

samreid commented Feb 13, 2018

From #64

Before instrumenting

The instrumentation Process

After instrumenting

  • Make sure Joist dt values are used instead of Date.now() or other Date functions. This is necessary for reproducible playback via input events.
  • Are random numbers using phet.joist.random, and all doing so after modules are declared (non-statically)? For example, the following methods (and perhaps others) should not be used: Math.random, _.shuffle, _.sample, _.random.
  • undefined values cannot be saved by phet-io, sims should be written to use null instead.
  • Verify that the simulation works in all of the phet-io wrappers.
  • Build with grunt --brand=phet-io and test the built version by launching build/wrappers/index and testing all the links.
  • Manually look through Instance Proxies to make sure that tandems work as expected and are formatted correctly.
  • Perform a full test for memory leaks. The benchmark dev release can be helpful here. This will help catch faulty tandem disposal.
  • If the instrumentation process was large enough, then there is reason for another code review (or partial). Use your judgement. Ask @ariel-phet or @kathy-phet if you are worried about the cost.
  • Set up a task to have the newly instrumented sim dev tested by the QA team.
  • Update these instructions if you find them to be incomplete, inconsistent or incorrect.
  • After publishing, add your instrumented simulation to the spreadsheet here: https://docs.google.com/spreadsheets/d/1pU9izdNQkd9vr8TvLAfXe_v68yh-7potH-y712FBPr8/edit#gid=0
  • In conclusion
@samreid samreid self-assigned this Feb 13, 2018
samreid added a commit to phetsims/perennial that referenced this issue Feb 15, 2018
@samreid
Copy link
Member Author

samreid commented Feb 15, 2018

Everything complete or moved to new issues, closing.

@samreid samreid closed this as completed Feb 15, 2018
samreid added a commit to phetsims/brand that referenced this issue Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant