hydroflow
hydroflow copied to clipboard
feat(hydro_deploy): provide a mechanism for binary cleanup after execution
Discussion:
Mingwei Samuel (AWS):
Do we want to auto-cleanup hydro binaries? (Are they always regenerated when the test is run or is there caching?)
Shadaj Laddad (AWS):
for the final linked binaries there is no caching across tests, so in "test mode" (which we have a global static var for) we could totally delete the compiled binary after each test
Shadaj Laddad (AWS):
now, the annoying thing will be that hydro deploy is responsible for actually compiling the binary, so we'll have to string things through a bit
I'm imagining that hydro deploy can have a cleanup_binaries global static that is enabled in the init_test of hydro_lang? so that it's transparent to the user