Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
Sharding 2021-04-19, Sharding 2021-05-03
Description
When spawning an evergreen host with task artifacts, the host becomes available to connect to before the artifacts are downloaded and before the setup script is fully executed.
We should best-effort communicate to users that log in before the script completes that the data files/environment are not necessarily ready for inspection. tommaso.tocci suggested a combination of using a text file/login banner/wall command.
I think the following might make sense:
When the script starts have it do the following:
- Add wall "The setup_spawnhost_coredump script has just started setting up the debugging environment." to the beginning of the setup script
- Write a .setup_spawnhost_coredump_progress file with the contents The setup script is still setting up data files for inspection.
- Add cat ~/.setup_spawnhost_coredump_progress to the login script that's written out at the beginning of executing the setup script.
- At the end of the setup script:
- Replace the "progress" file contents with a completed message
- Notify users to relogin with wall "The setup_spawnhost_coredump script has completed, please relogin to ensure the right environment variables are set."