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

dev-db/redis: rework src_test #25831

Closed
wants to merge 6 commits into from
Closed

dev-db/redis: rework src_test #25831

wants to merge 6 commits into from

Conversation

arkamar
Copy link
Member

@arkamar arkamar commented Jun 9, 2022

I think die should be used with all those scripts or is there a reason why it shouldn't?

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Jun 9, 2022
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2022-06-09 12:21 UTC
Newest commit scanned: 1db63ef
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/d8d4f41845/output.html

@arkamar
Copy link
Member Author

arkamar commented Jun 9, 2022

I will append https://bugs.gentoo.org/649868 fix to this PR as well. I'm working on it.

@arkamar arkamar changed the title dev-db/redis: add die for all local test scripts WIP: dev-db/redis: add die for all local test scripts Jun 10, 2022
@arkamar
Copy link
Member Author

arkamar commented Jun 10, 2022

It took slightly longer than I thought but I believe it was for good thing. All tests seem to work now with usual default FEATURES.

@arkamar arkamar changed the title WIP: dev-db/redis: add die for all local test scripts dev-db/redis: add die for all local test scripts [please reassign] Jun 10, 2022
@arkamar arkamar changed the title dev-db/redis: add die for all local test scripts [please reassign] dev-db/redis: rework src_test [please reassign] Jun 10, 2022
@gentoo-bot gentoo-bot changed the title dev-db/redis: rework src_test [please reassign] dev-db/redis: rework src_test Jun 10, 2022
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @arkamar
Areas affected: ebuilds
Packages affected: dev-db/redis

dev-db/redis: @thesamesam

Linked bugs

Bugs linked: 649868, 756382


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. and removed assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Jun 10, 2022
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2022-06-10 20:51 UTC
Newest commit scanned: b6c9740
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0f11f0471d/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2022-06-10 21:21 UTC
Newest commit scanned: 8971f91
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/e9796ece51/output.html

fi

echo "./runtest ${runtestargs[@]}"
Copy link
Member

Choose a reason for hiding this comment

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

edo! :)

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, nice, I have changed that.

@@ -55,9 +55,6 @@ PATCHES=(
src_prepare() {
default

# unstable on jemalloc
Copy link
Member

Choose a reason for hiding this comment

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

We've lost this, is that ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it is ok. Sorry, I was too tired and lazy to write some summary of those commits yesterday, but it is actually explained in commit messages. This issue seems to affect 6.0 only, see fefe8b0. It was fixed in 6.2* and it does not affect 7.0* either, at least those tests work for me, see b325b5d.

Copy link
Member

Choose a reason for hiding this comment

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

It's my bad for not reading the commit messages! Great work here.

Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
It is necessary to cal ./runtest directly from src_test function in
order to be able to pass --clients parameter.

Bug: https://bugs.gentoo.org/649868
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
This change makes tests to respect user MAKEOPTS jobs preference rather
than running 16 test clients by default.

Closes: https://bugs.gentoo.org/649868
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Defrag tests with enabled jemalloc are fixed since version 6.2*, let's
restore them back.

Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
It is possible to skip selected tests by --skiptest argument passed to
runtest, which is cleaner than emptying the script file. Moreover, only
"Active defrag*" tests are affected, therefore we can restore "Memory
efficiency*" tests which are also part of memoryefficiency unit.

Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
oom-score-adj related unit tests fail when usersandbox or -userpriv
FEATURES are set, therefore let's skip them. They were introduced as
unit/oom-score-adj tests in 6.2.0 but they were backported to 6.0.7.
Later, "CONFIG SET rollback on apply error" test was added in version
7.0.0 which also tries to adjust OOM score.

Closes: https://bugs.gentoo.org/756382
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2022-06-11 21:01 UTC
Newest commit scanned: 5b0c6a3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/9c374cb90b/output.html

@arkamar
Copy link
Member Author

arkamar commented Jun 11, 2022

Summary of last FP:

  • use of edo for all local test script calls
  • Use MAKEOPTS jobs to limit number of test clients, this change is in two commits, first one changes 5.0.14 only because it was necessary to introduce src_test function and the second addapts the rest of ebuilds where ./runtest script is already used.
  • defrag tests are restored in another commit in version 6.2* and 7.0*
  • only defrag tests are skipped in 6.0 in next commit
  • the last commit resolves problem with oom-score-adj related tests when usersanbox or -userpriv FEATURES are set.

@thesamesam thesamesam reopened this Jun 12, 2022
@thesamesam thesamesam closed this Jun 12, 2022
@thesamesam
Copy link
Member

Big thank you!

@arkamar arkamar deleted the redis branch June 13, 2022 06:16
@thesamesam
Copy link
Member

Also, if you're interested, you're free to join me in maintaining Redis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
4 participants