[SERVER-68109] setup_spawnhost_coredump script should notify user via Slack when it has finished running Created: 18/Jul/22  Updated: 29/Oct/23  Resolved: 19/Jul/22

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2022-07-25
Participants:
Story Points: 1

 Description   

The wall command is great for having the banner to tell me when I've ssh'd in too early. Having the notification come through Slack when everything is finished means I would only need to look once though.

Proposed Slack notification text:

Linux

The setup_spawnhost_coredump script has finished setting things up. Please run

ssh ec2-user@ec2-xx-yy-zz-ww.compute-1.amazonaws.com

to log in.

Windows

Using Cygwin for remote debugging on Windows is strongly discouraged. We should steer Server engineers to use Windows Remote Desktop instead.

The setup_spawnhost_coredump script has finished setting things up. Please use Windows Remote Desktop with

  1. PC name: ec2-xx-yy-zz-ww.compute-1.amazonaws.com
  2. User account: Administrator
  3. The RDP password configured under the edit dialog at https://spruce.mongodb.com/spawn/host

to log in.



 Comments   
Comment by Max Hirschhorn [ 19/Jul/22 ]

The changes from 0fa5c9a to handle how the setup_spawnhost_coredump script runs as the mci-exec user (and not the Administrator user) on Windows spawn hosts appear to be insufficient for getting Slack notifications to work. It is unclear what is different about how the hostSetupScriptJob in Evergreen runs the setup_spawnhost_coredump script compared to the steps which are simulated by hand.

(in Cygwin terminal for Administrator user)
$ net user mci-exec **password here**
$ runas /user:mci-exec "C:/cygwin/bin/mintty.exe -i /Cygwin-Terminal.ico -"
Enter the password for mci-exec:
(type **password here**<enter>)
 
(now in new Cygwin terminal do the following)
$ cd /data/mci/source-mongodb-mongo-master-9b1eb0/
$ ./buildscripts/setup_spawnhost_coredump

Comment by Githook User [ 19/Jul/22 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-68109 Fix sending Slack notifications for Windows spawn hosts.
Branch: master
https://github.com/mongodb/mongo/commit/0fa5c9a8075ef9d27d3d94b68876a6fbd5afd54f

Comment by Githook User [ 18/Jul/22 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-68109 Notify via Slack when setup_spawnhost_coredump is done.
Branch: master
https://github.com/mongodb/mongo/commit/48a7a0948401216639969c0bec11c053fe2fb8fa

Generated at Thu Feb 08 06:09:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.