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

Commit

Permalink
Match the agent version to the server (#3093)
Browse files Browse the repository at this point in the history
* match the agent version to the server

* fix node state
  • Loading branch information
chkeita authored May 10, 2023
1 parent 56ca9ed commit 93b582f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
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

0 comments on commit 93b582f

Please sign in to comment.