lgtm but I would wait for a green stamp from @vlorentz as well
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Feb 11 2021
Feb 10 2021
Feb 9 2021
it would be nice to have an explanation in the commit message of why this is actually needed. Explain why the original implementation is incorrect, and how it fixes this old incorrect behavior.
Feb 5 2021
@vsellier nice. Note that if we draw these with a y-axis starting from 0, the step shape will be really negligible, so IMHO it's really not a problem.
Feb 4 2021
put the deps on djangorestframework-stubs >= 1.4 in requirement-tests.txt
Feb 2 2021
ok but see my comment
Feb 1 2021
add mininal test
Jan 29 2021
In D4923#125398, @douardda wrote:In D4923#125371, @vlorentz wrote:(requesting changes to get it out of my review queue)
That's not a valid reason! A valid reason is "I agree with olasd's comments, fix them (plz)"...
typo
In D4923#125371, @vlorentz wrote:(requesting changes to get it out of my review queue)
rebas
rebase
Jan 27 2021
few requests, please:
- add tests with this commit; every introduced function should have at least one test.
- add doctrings to your new functions,
- improve the commit message (see https://chris.beams.io/posts/git-commit/ ); with the current one, I have no idea what exactly is done in this commit, and more importantly, why this is needed for.
Let's consider it as done.
set the DeprecationWarning category in journal_data
remove stuff added mistakenly, and properly deprecate journal_data instead of breaking swh-storage
Jan 26 2021
Back on this, the plan is now to make swh-journal not depend on the actual model definition, which is currently mostly due to the presence of the journal_data.py in swh-journal. So the plan is to move this file in swh-model so it's kept up to date with swh-model, even if it's mostly used for testing other packages (like swh-journal).
And once again, this "cache" behavior makes the simulator unable to run "forever" (it will eat RAM). Maybe it's an assumed design choice, but please document it somewhere.
Something I don't understand: why do you need to keep both _visit_times and latest_snapshots in "caches" when a snapshot is derived from this visit time (and visit type and origin)?
Isn't there some inherent limitation with this lister_process (gradually eating RAM) that should be documented (maybe)?
Note that I still think there should be something in docs/simulator.rst also...
In D4909#123949, @vlorentz wrote:We're not claiming this is a realistic model. We only tried to do something that isn't completely naive, and exercises simple edge cases. Making it realistic is hard, and will probably be most of @olasd's work this week.
Jan 25 2021
In D4909#123805, @vlorentz wrote:Yes, but that's not inconsistent as we can discover origins that we didn't know about.
I'm really not sure to understand what the simulated model looks like in the end. Do I get it right that, including this diff:
Jan 22 2021
rebased
s/-H/-P/
thanks. I think however, given its purpose, this example code should be heavily commented: each constant (eg. MyPageType) and each method should be commented (not docstrings but comments exaplaining what the method/variable is used for).
Not very fond of this "one week => dead" embedded in there, but meh.
ok, but it would have been nice to have an explanation of why this is necessary in the commit message.
In D4920#123571, @vlorentz wrote:In D4920#123533, @douardda wrote:why not (cli option), but why (keep it deterministic)?
- reproducibility, so we can run the simulator twice with different code, and be sure that differences in behavior are not caused by randomness
rebased
rebased
In D4920#123548, @douardda wrote:In D4920#123533, @douardda wrote:In D4920#123465, @vlorentz wrote:I'd like to keep the simulator deterministic. What about adding a CLI option with a seed?
why not (cli option), but why (keep it deterministic)?
Also, a given seed will not be enough here: there is also the maxts = int(utcnow().timestamp()) that will kill the deterministic property...
In D4920#123533, @douardda wrote:In D4920#123465, @vlorentz wrote:I'd like to keep the simulator deterministic. What about adding a CLI option with a seed?
why not (cli option), but why (keep it deterministic)?
In D4920#123465, @vlorentz wrote:I'd like to keep the simulator deterministic. What about adding a CLI option with a seed?
rebased
rebase on D4916
rebased
kill unnedded dependency on D4920
with the commit...
type + vorentz' comment
lgtm