You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add code to handle disable actions and support for merging HGAP immediate GS with local GS cache (#53)
* Create go.yml
* initial changes to support disabling a command
* Print payload
* update bits
* update bits
* Only report not empty statuses
* Only report not empty statuses
* Only report not empty statuses
* Update bits
* Update bits
* Update bits
* Update bits
* Update bits
* Update status to uploadf
* Update status to uploadf
* update bits
* Add extension name in status
* add logging for reporting status
* change the format of the status to upload
* change the format of the status to upload
* change the format of the status to upload
* update bits
* Fix unit tests
* Add notification when the extension is deleted
* Add notification when the extension is deleted
* Handle non-modified vmsettings
* Remove unused bits
* Fix comment
* Fix unit test
* Add fake server for other unit tests
* Reset seqnum when disabling extensions
* Add code to store in the cache goal states in terminal states
* Remove status after it's beeing store
* Add some logging
* Add logs
* Remove disable goal states after they were processed
* Report goal states in terminal status to HGAP
* Remove disable status from local cache
* Add logging
* Change the check for when the extension is disabled
* Fix issue of not reporting back updated goal states
* Change the frequency to report the status of a command from 30 to 15 seconds
* remove unused error
* Change file extension of immediate goal states to make sure it gets copied when upgrading the extension
* Test logs
* Add changes to immediately storing final states in local file
* Use correct StatusType strings
* Lock status file to make sure it keeps consistent
* Fix unit tests
ctx.Log("event", "resetting seqnum by deleting file", "path", mrseqPath)
346
+
os.Remove(mrseqPath)
347
+
}
348
+
338
349
// Copy state of the extension from old version to new version during update (.mrseq files, .status files)
339
350
funcCopyStateForUpdate(ctx log.Logger) error {
340
351
// Copy .mrseq files (Most Recently executed Sequence number) that helps determine whether a sequence number of Run Command has been previously executed or not.
returnerrors.Wrap(err, "failed to get status item")
107
121
}
108
122
109
123
ctx.Log("message", fmt.Sprintf("reporting status by notifying the observer to then send to HGAP for extension name %v and seq number %v", metadata.ExtName, metadata.SeqNum))
0 commit comments