sort glob() output for consistent results#16
Conversation
since glob() returns an ordering that is os-dependent, we need to sort here in order to ensure that all OS'es load the non-prioritized plugins in the same order this change does not fix any loading issues, BUT it will ensure that if there's an issue on one server, there will be an issue everywhere (no inconsistent issues on different OSes)
|
fixes #15 |
|
in this example btw, magstock needs to get loaded after bands plugin because it overrides some stuff there. the RIGHT answer is to put the band plugin in priority_plugins (a separate change that will be coming) but, it's really confusing without this change because on my box band plugin happens to load before magstock (correct) and on staging it just happens to load after magstock (broken). so this change just makes sure either both boxes work, or they both fail. This eliminates one source of possible inconsistencies between multiple environments. |
|
I've been ambivalent about whether this change was really needed but it seems you do keep running into trouble. If nothing else, this will catch config errors more reliably. That being said, it looks like the Travis build failed? |
|
Yea seems to be falling what looks like an unrelated unit test only for
|
|
@binary1230 Do you want to merge anyway? |
|
hey so I just re-ran the travis build and this time it worked, it looked like some kind of transient thing. The sideboard tests open websockets and stuff, so it's possible something got janky there. |
Since glob() returns an ordering that is os-dependent, we need to sort here in order to ensure that all OS'es load the non-prioritized plugins in the same order
This change does not fix any loading issues, BUT it will ensure that if there IS a load order issue, it will happen either everywhere or nowhere. This eliminates "why is it working on my machine but not on the server".
sidenote: Originally I wanted to do this change as a precaution, however, it turns out it's necessary for my computer and magstock staging server to load things in the same order.
before fix:
non-prioritized plugin load order on magfest staging server:
non-prioritized plugin load order on my box:
after fix:
both environments now load in the same order: