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

LogPoller prune test #1351

Draft
wants to merge 9 commits into
base: max-logs-kept-tests
Choose a base branch
from
Draft

Conversation

mateusz-sekara
Copy link
Contributor

Motivation

Solution

@mateusz-sekara mateusz-sekara changed the title Mateusz test LogPoller prune test Aug 22, 2024
@@ -658,7 +658,7 @@ func (lp *logPoller) backgroundWorkerRun() {
}
case <-logPruneTick:
lp.lggr.Infof("Pruning LogPoller logs...")
logPruneTick = time.After(utils.WithJitter(lp.pollPeriod * 2401)) // = 7^5 avoids common factors with 1000
logPruneTick = time.After(utils.WithJitter(5 * time.Minute)) // = 7^5 avoids common factors with 1000
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ignoring poll period only to test

@@ -443,7 +443,8 @@ func NewCommitStore(lggr logger.Logger, addr common.Address, ec client.Client, l
Name: logpoller.FilterName(v1_0_0.EXEC_REPORT_ACCEPTS, addr.String()),
EventSigs: []common.Hash{eventSig},
Addresses: []common.Address{addr},
Retention: ccipdata.CommitExecLogsRetention,
//Retention: ccipdata.CommitExecLogsRetention,
MaxLogsKept: 10,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is probably going to break the tests, because it's too aggressive. I set that intentionally to enforce more freq prunes

@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 75%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarLint SonarLint

@reductionista reductionista force-pushed the max-logs-kept-tests branch 2 times, most recently from 814b898 to 0a76672 Compare August 29, 2024 16:43
@reductionista reductionista force-pushed the max-logs-kept-tests branch 4 times, most recently from e4aa477 to 6164cd5 Compare September 4, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants