You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
153545: asim: output test set up if eval has full = true r=tbg a=wenyihu6
Resolves: #153572
Release note: none
---
**asim: add a separator line after each run**
This commit updates asim output to add a separate line after each simulation run
to improve readability.
---
**asim: export DefaultStartTime**
This commit exports the simulator’s default start time, which will be used in
future commits to compare against scheduled event timestamps in the scheduler
package, ensuring timestamp is printed only when not at the start time.
---
**asim: move some variables to an outer scope**
This commit moves certain variables above the configuration declarations so they
can be reused in an outer scope.
---
**asim: generate {TESTNAME}_setup.txt**
This commit adds a test setup string which will be outputted to
{TESTNAME}_setup.txt. Only the first configuration and first sample are emitted,
since the setup should effectively be the same across runs (other than
LBRebalancingMode) and duplicating it would add unnecessary runtime churn. One
downside is that the scheduled event for LBRebalancingMode will only reflect the
first occurrence. If a datadriven test contains multiple evals, the last one
wins.
---
**asim: remove run.stateStrAcrossSamples append**
This commit removes an unused run.stateStrAcrossSamples append. I left the field
itself in place in the struct since it causes no harm, though we can consider
deleting it entirely.
---
**asim: print simulation setting as part of * _setup.txt**
This commit includes simulation settings in the setup output. Only values that
differ from the default simulation settings are printed. Note that cluster
settings and the seed are omitted. The simulation seed is derived from
rand.New(rand.NewSource(42)).Int63() by default, while the default simulation
setting itself uses 42.
Note that we rely on users to explicitly reset cluster settings between runs. It
isn’t an issue now, but it may become a potential footgun in the future.
---
**asim: print store info to * _setup.txt**
This commit outputs store capacity and store attributes t.o the setup file.
---
**asim: output test set up if eval has full = true**
This commit adds an optional parameter to eval that outputs the test setup. By
default, the setup is only written to the generated folder as
{TESTNAME}_setup.txt.
Co-authored-by: wenyihu6 <[email protected]>
0 commit comments