Skip to content

Commit 93b582f

Browse files
authored
Match the agent version to the server (microsoft#3093)
* match the agent version to the server * fix node state
1 parent 56ca9ed commit 93b582f

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/ApiService/ApiService/Functions/AgentEvents.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,10 @@ private async Async.Task<HttpResponseData> Post(HttpRequestData req) {
7171
}
7272

7373
if (ev.State == NodeState.Free) {
74-
if (!node.Managed) {
75-
return null;
76-
}
77-
7874
if (node.ReimageRequested || node.DeleteRequested) {
75+
if (!node.Managed) {
76+
return null;
77+
}
7978
_log.Info($"stopping free node with reset flags: {machineId:Tag:MachineId}");
8079
// discard result: node not used after this point
8180
_ = await _context.NodeOperations.Stop(node);

src/agent/onefuzz-agent/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
3737
let mut version = read_file("../../../CURRENT_VERSION")?;
3838

3939
if include_sha {
40-
version.push('-');
40+
version.push('+');
4141
version.push_str(sha);
4242

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

src/agent/onefuzz-task/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn print_version(include_sha: bool, include_local: bool, sha: &str) -> Result<()
3737
let mut version = read_file("../../../CURRENT_VERSION")?;
3838

3939
if include_sha {
40-
version.push('-');
40+
version.push('+');
4141
version.push_str(sha);
4242

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

src/proxy-manager/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn print_version(include_sha: bool, include_local: bool) -> Result<(), Box<dyn E
3030
let sha = run_cmd(&["git", "rev-parse", "HEAD"])?;
3131

3232
if include_sha {
33-
version.push('-');
33+
version.push('+');
3434
version.push_str(&sha);
3535

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

0 commit comments

Comments
 (0)