-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
-
Fully Compatible
-
QI 2024-05-27, QI 2024-06-10
We want to users to be able to look at the output of any task running mongot and see something like:
Currently running mongot version: x.x.x
Work so far:
I'll need to follow up with dev-prod on the most accepted way to do this but:
It's not currently printing anything in the logs unfortunately (*haven't rigorously looked into it yet), but my attempt was:
Adding a script to print out the version, evergreen/functions/get_mongot_version.sh:
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" . "$DIR/../prelude.sh" cd src echo "Currently running mongot version: $(./${install_dir}/mongot-localdev/mongot --version)"
And then adding a corresponding function to definitions.yml:
"get mongot version": &get_mongot_version command: subprocess.exec display_name: "get mongot version" params: binary: bash args: - "./src/evergreen/functions/get_mongot_version.sh"
And then calling the function in the search tasks, i.e.:
- <<: *task_template name: search_end_to_end_single_node [...] commands: - func: "do setup" - func: "get mongot version" - func: "run tests"