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 failing ArchiveCron test #20178

Merged
merged 2 commits into from Jan 11, 2023
Merged

Fix failing ArchiveCron test #20178

merged 2 commits into from Jan 11, 2023

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jan 9, 2023

Description:

Starting 2023 one of the tests started to fail. The problem is, that the segments were not archived anymore for the year the tests are using. Adjusting the archiving parameter fixed that.

While looking for the reason of the failure, I also found a few places where an incorrect constructor parameter was provided for SegmentArchiving. It expects as first parameter the number of years it should process new segments for when processing them from beginning of time.
Seem that used to be the value of the configuration for from when to processes segments.

Review

@sgiehl sgiehl added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review labels Jan 9, 2023
@sgiehl sgiehl added this to the 4.13.1 milestone Jan 9, 2023
@sgiehl sgiehl requested a review from bx80 January 9, 2023 15:56
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

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

@bx80 bx80 merged commit a23728d into 4.x-dev Jan 11, 2023
@bx80 bx80 deleted the fixarchivetest branch January 11, 2023 22:14
justinvelluppillai pushed a commit that referenced this pull request Jan 12, 2023
* remove incorrect contructor parameters for SegmentArchiving class

* Esnure segments are archived for the correct years in tests
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jan 12, 2023
@sgiehl sgiehl modified the milestones: 4.13.1, 4.13.2 Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants