Validate and integrate fleet intelligence features
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Fix atlas skip merge under lock, tolerate post-auth WS frames in tests, and harden test-suite npm invocation on Windows.
This commit is contained in:
@@ -14,8 +14,8 @@ type AtlasSkip struct {
|
||||
func (c *AgentClient) applyAtlasSkips(skips []AtlasSkip) {
|
||||
c.mu.Lock()
|
||||
c.atlasSkips = append([]AtlasSkip(nil), skips...)
|
||||
c.mergeAtlasSkipsIntoPolicyLocked()
|
||||
c.mu.Unlock()
|
||||
c.mergeAtlasSkipsIntoPolicy()
|
||||
}
|
||||
|
||||
func (c *AgentClient) atlasSkipsSnapshot() []AtlasSkip {
|
||||
@@ -27,6 +27,10 @@ func (c *AgentClient) atlasSkipsSnapshot() []AtlasSkip {
|
||||
func (c *AgentClient) mergeAtlasSkipsIntoPolicy() {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
c.mergeAtlasSkipsIntoPolicyLocked()
|
||||
}
|
||||
|
||||
func (c *AgentClient) mergeAtlasSkipsIntoPolicyLocked() {
|
||||
if len(c.atlasSkips) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user