Skip to content

Commit 4af6c2c

Browse files
mage: clean up .agent-testing folder on mage clean (#8123) (#8133)
(cherry picked from commit df5b630) Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
1 parent 32d2c7a commit 4af6c2c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dev-tools/mage/clean.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
// The values may contain variables and will be expanded at the time of use.
1313
var DefaultCleanPaths = []string{
1414
"build",
15+
".agent-testing",
1516
"docker-compose.yml.lock",
1617
"{{.BeatName}}",
1718
"{{.BeatName}}.exe",

docs/test-framework-dev-guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ If you encounter any errors mentioning `ogc`, try running `mage integration:clea
436436
re-running whatever `mage integration:*` target you were trying to run originally when you
437437
encountered the error.
438438

439+
### Tests seemingly using a stale Elastic Agent package
440+
441+
If your integration tests seem to be using a stale or outdated version of Elastic Agent, it might be due to a cached copy in the .agent-testing directory. To fix this, run `mage clean` to remove cached artifacts, then rebuild the agent with `mage package`, and finally run the integration tests again.
442+
439443
### Using a different agent version from the stack version
440444

441445
The agent version is used as a fallback for the stack version to use in integration tests

0 commit comments

Comments
 (0)