Skip to content
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(6107): skipping escaping secrets in policy test because it is flaky #6120

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

kaanyalti
Copy link
Contributor

  • Bug

What does this PR do?

Skips test that was added in #5987

Why is it important?

The test is flaky, will skip until it is fixed

Checklist

  • [ ] My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

Related issues

@kaanyalti kaanyalti marked this pull request as ready for review November 21, 2024 17:59
@kaanyalti kaanyalti requested a review from a team as a code owner November 21, 2024 17:59
@kaanyalti kaanyalti force-pushed the fix-6107/skip-excaping-secret-test branch from 1159334 to 4abe6b9 Compare November 21, 2024 17:59
Copy link
Contributor

mergify bot commented Nov 21, 2024

This pull request does not have a backport label. Could you fix it @kaanyalti? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label to automatically backport to the 8./d branch. /d is the digit

Copy link
Contributor

mergify bot commented Nov 21, 2024

backport-v8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label and remove the backport-8.x label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Nov 21, 2024
@kaanyalti kaanyalti force-pushed the fix-6107/skip-excaping-secret-test branch from 4abe6b9 to ff441c8 Compare November 21, 2024 18:18
@kaanyalti kaanyalti force-pushed the fix-6107/skip-excaping-secret-test branch from ff441c8 to cfd732f Compare November 21, 2024 18:20
Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
@kaanyalti kaanyalti enabled auto-merge (squash) November 21, 2024 19:09
@@ -30,6 +30,7 @@ func TestEscapingSecretsInPolicy(t *testing.T) {
Stack: &define.Stack{},
Sudo: true,
})
t.Skip("flaky test: https://github.com/elastic/elastic-agent/issues/6107")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this line as the first line in the test? Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting starts complaining, is there a way to turn linting off for that block of code? something like //skip-linting-here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's the nolint tag, but don't know which one corresponds to this one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it complain about?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swiatekm our linter enforces that the setup of the test define.Require is always the first line in a test. t.Skip should go after.

Copy link
Member

@mauri870 mauri870 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link

@kaanyalti kaanyalti disabled auto-merge November 21, 2024 20:40
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 22, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pierrehilbert pierrehilbert added the skipped-test This change disables one or multiple tests label Nov 22, 2024
@kaanyalti kaanyalti merged commit e983650 into elastic:main Nov 22, 2024
16 of 17 checks passed
mergify bot pushed a commit that referenced this pull request Nov 22, 2024
…ky (#6120)

* fix(6107): skipping escaping secrets in policy test because it is flaky

* fix(6107): fix linting

* Update testing/integration/escaping_secrets_in_policy_test.go

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit e983650)
ycombinator pushed a commit that referenced this pull request Nov 23, 2024
…ky (#6120)

* fix(6107): skipping escaping secrets in policy test because it is flaky

* fix(6107): fix linting

* Update testing/integration/escaping_secrets_in_policy_test.go

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit e983650)
@ycombinator ycombinator added the backport-8.17 Automated backport with mergify label Nov 23, 2024
@ycombinator
Copy link
Contributor

ycombinator commented Nov 23, 2024

Backporting this PR to 8.17 as well since changes from #5987 are in that branch as well.

mergify bot pushed a commit that referenced this pull request Nov 23, 2024
…ky (#6120)

* fix(6107): skipping escaping secrets in policy test because it is flaky

* fix(6107): fix linting

* Update testing/integration/escaping_secrets_in_policy_test.go

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit e983650)
pierrehilbert pushed a commit that referenced this pull request Nov 23, 2024
…ky (#6120) (#6127)

* fix(6107): skipping escaping secrets in policy test because it is flaky

* fix(6107): fix linting

* Update testing/integration/escaping_secrets_in_policy_test.go

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit e983650)

Co-authored-by: Kaan Yalti <kaan.yalti@elastic.co>
ycombinator pushed a commit that referenced this pull request Nov 23, 2024
…ky (#6120) (#6131)

* fix(6107): skipping escaping secrets in policy test because it is flaky

* fix(6107): fix linting

* Update testing/integration/escaping_secrets_in_policy_test.go

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>

---------

Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
(cherry picked from commit e983650)

Co-authored-by: Kaan Yalti <kaan.yalti@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify backport-8.17 Automated backport with mergify skip-changelog skipped-test This change disables one or multiple tests Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants