Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/commands/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ module.exports = function run(args, rawArgs) {
utils.setProcessHooks(data.build_id, bsConfig, bs_local, args, buildReportData);
if(isTestObservabilitySession) {
utils.setO11yProcessHooks(data.build_id, bsConfig, bs_local, args, buildReportData);
// OB-10135: cache the automate build id so `stopBuildUpstream`
// can include it on the obs-api buildStop payload. Enables the
// synergy dashboard to call the railsApp resource-errors
// endpoint in the automate id-space directly.
process.env.BROWSERSTACK_AUTOMATION_BUILD_ID = data.build_id;
}
let message = `${data.message}! ${Constants.userMessages.BUILD_CREATED} with build id: ${data.build_id}`;
let dashboardLink = `${Constants.userMessages.VISIT_DASHBOARD} ${data.dashboard_url}`;
Expand Down
7 changes: 6 additions & 1 deletion bin/testObservability/helper/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,12 @@ exports.stopBuildUpstream = async () => {
};
} else {
const data = {
'stop_time': (new Date()).toISOString()
'stop_time': (new Date()).toISOString(),
// OB-10135: propagate the automate build hashed_id (cached at
// build-create time in runs.js) so obs-api can persist it and the
// synergy dashboard can call the railsApp resource-errors endpoint
// in the automate id-space directly.
'automate_build_id': process.env.BROWSERSTACK_AUTOMATION_BUILD_ID
};
const config = {
headers: {
Expand Down
Loading