-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI pipeline #26013
Fix CI pipeline #26013
Conversation
Pinging @elastic/agent (Team:Agent) |
❕ Build Aborted
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪Test errorsExpand to view the tests failures
|
cmd(label: "make notice", script: "make notice") | ||
cmd(label: "make check-go", script: "make check-go") | ||
cmd(label: "Check for changes", script: "make check-no-changes") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update order to match make check
. The make notice
command can download dependencies, which results in go.sum
being updated. The make check-go
seems to clean the go.sum
again. Depending on order of make notice
and make check-go
the lint checks are currently not satisfiable without requiring a fixed order. make check-go
just runs go mod tidy
, which seems to clean up the 'polution' from make notice
.
@@ -110,6 +110,7 @@ check-go: | |||
## ccheck-no-changes : Check there is no local changes. | |||
.PHONY: check-no-changes | |||
check-no-changes: | |||
@go mod tidy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per Beats lint runs make check; make update; make check-no-changes
. The make update
call touches go.sum
when indirectly calling make notice
. Try to be more aggressive before checking and clean up intermediary updates to go.sum
before checking via git diff
.
The linting part seems to pass, let's re-run the tests |
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Add comment so we don't forget about this ordering in the future.
Co-authored-by: cachedout <mike.place@elastic.co>
Try to fix lint step in master and PRs targeting master. Co-authored-by: cachedout <mike.place@elastic.co> (cherry picked from commit c69dfb3)
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
Try to fix lint step in master and PRs targeting master. Co-authored-by: cachedout <mike.place@elastic.co> (cherry picked from commit c69dfb3) Co-authored-by: Steffen Siering <steffen.siering@elastic.co>
@@ -110,6 +110,7 @@ check-go: | |||
## ccheck-no-changes : Check there is no local changes. | |||
.PHONY: check-no-changes | |||
check-no-changes: | |||
@go mod tidy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we run go mod tidy
here we need to run also go mod download
to be consistent with make notice
. I have opened a PR for this: #26241
What does this PR do?
Add missing updates from
make update
.Why is it important?
Try to fix lint step in master and PRs targeting master.