Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.
Merged
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
10 changes: 9 additions & 1 deletion cli/raft_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,15 @@ def common_environment_variables(self, job_id, work_dir):
env += self.env_variable('RAFT_APP_INSIGHTS_KEY', '00000000-0000-0000-0000-000000000000')
env += self.env_variable('RAFT_SITE_HASH', '0')
env += self.env_variable('RAFT_SB_OUT_SAS', 'dummy_sas')
env += self.env_variable('RAFT_LOCAL', '1')

# If we are running in a github action (or some other unique environment)
# we will set this value before running
# to distinquish between the different environments.
customLocal = os.getenv("RAFT_LOCAL")
if customLocal is None:
env += self.env_variable('RAFT_LOCAL', 'Developer')
else:
env += self.env_variable('RAFT_LOCAL', customLocal)
return env

def docker_create_bridge(self, job_id):
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/RESTlerAgent/AgentMain.fs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ let main argv =
let telemetryTag =
match System.Environment.GetEnvironmentVariable("RAFT_LOCAL") |> Option.ofObj with
| None -> "RAFT"
| Some _ -> "RAFT-LOCAL"
| Some t -> sprintf "RAFT-LOCAL(%s)" t
use telemetryClient = new Restler.Telemetry.TelemetryClient(siteHash, (if agentConfiguration.TelemetryOptOut then "" else Restler.Telemetry.InstrumentationKey), telemetryTag)

if not <| IO.Directory.Exists workDirectory then
Expand Down