Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Match the agent version to the server #3093

Merged
merged 2 commits into from
May 10, 2023
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
7 changes: 3 additions & 4 deletions src/ApiService/ApiService/Functions/AgentEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ private async Async.Task<HttpResponseData> Post(HttpRequestData req) {
}

if (ev.State == NodeState.Free) {
if (!node.Managed) {
return null;
}

if (node.ReimageRequested || node.DeleteRequested) {
if (!node.Managed) {
return null;
}
_log.Info($"stopping free node with reset flags: {machineId:Tag:MachineId}");
// discard result: node not used after this point
_ = await _context.NodeOperations.Stop(node);
Expand Down
2 changes: 1 addition & 1 deletion src/agent/onefuzz-agent/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
let mut version = read_file("../../../CURRENT_VERSION")?;

if include_sha {
version.push('-');
version.push('+');
version.push_str(sha);

// if we're a non-release build, check to see if git has
Expand Down
2 changes: 1 addition & 1 deletion src/agent/onefuzz-task/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
let mut version = read_file("../../../CURRENT_VERSION")?;

if include_sha {
version.push('-');
version.push('+');
version.push_str(sha);

// if we're a non-release build, check to see if git has
Expand Down
2 changes: 1 addition & 1 deletion src/proxy-manager/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn print_version(include_sha: bool, include_local: bool) -> Result<(), Box<dyn E
let sha = run_cmd(&["git", "rev-parse", "HEAD"])?;

if include_sha {
version.push('-');
version.push('+');
version.push_str(&sha);

// if we're a non-release build, check to see if git has
Expand Down