-
Notifications
You must be signed in to change notification settings - Fork 921
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
rec: add bigger (and v6 enabled) bulk test on ubicloud #15018
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ | |
] | ||
rec_bulk_deps = [ | ||
'curl', | ||
'dnsutils', | ||
'libboost-all-dev', | ||
'libcap2', | ||
'libfstrm0', | ||
|
@@ -71,6 +72,22 @@ | |
'pdns-tools', | ||
'unzip', | ||
] | ||
rec_bulk_ubicloud_deps = [ | ||
'curl', | ||
'dnsutils', | ||
'libboost-context1.74.0', | ||
'libboost-system1.74.0', | ||
'libboost-filesystem1.74.0', | ||
'libcap2', | ||
'libfstrm0', | ||
'libluajit-5.1-2', | ||
'"libsnmp[1-9]+"', | ||
'libsodium23', | ||
'libsystemd0', | ||
'moreutils', | ||
'pdns-tools', | ||
'unzip', | ||
] | ||
dnsdist_build_deps = [ | ||
'libcap-dev', | ||
'libcdb-dev', | ||
|
@@ -267,6 +284,11 @@ def install_rec_bulk_deps(c): # FIXME: rename this, we do way more than apt-get | |
c.sudo('apt-get --no-install-recommends -y install ' + ' '.join(rec_bulk_deps)) | ||
c.run('chmod +x /opt/pdns-recursor/bin/* /opt/pdns-recursor/sbin/*') | ||
|
||
@task | ||
def install_rec_bulk_ubicloud_deps(c): # FIXME: rename this, we do way more than apt-get | ||
c.sudo('apt-get --no-install-recommends -y install ' + ' '.join(rec_bulk_ubicloud_deps)) | ||
c.run('chmod +x /opt/pdns-recursor/bin/* /opt/pdns-recursor/sbin/*') | ||
|
||
@task | ||
def install_rec_test_deps(c): # FIXME: rename this, we do way more than apt-get | ||
c.sudo('apt-get --no-install-recommends install -y ' + ' '.join(rec_bulk_deps) + ' \ | ||
|
@@ -1044,13 +1066,12 @@ def test_regression_recursor(c): | |
c.run('PDNSRECURSOR=/opt/pdns-recursor/sbin/pdns_recursor RECCONTROL=/opt/pdns-recursor/bin/rec_control ./build-scripts/test-recursor') | ||
|
||
@task | ||
def test_bulk_recursor(c, threads, mthreads, shards): | ||
# We run an extremely small version of the bulk test, as GH does not seem to be able to handle the UDP load | ||
def test_bulk_recursor(c, size, threads, mthreads, shards, ipv6): | ||
with c.cd('regression-tests'): | ||
c.run('curl -LO http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip') | ||
c.run('curl --no-progress-meter -LO http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recently discovered |
||
c.run('unzip top-1m.csv.zip -d .') | ||
c.run('chmod +x /opt/pdns-recursor/bin/* /opt/pdns-recursor/sbin/*') | ||
c.run(f'DNSBULKTEST=/usr/bin/dnsbulktest RECURSOR=/opt/pdns-recursor/sbin/pdns_recursor RECCONTROL=/opt/pdns-recursor/bin/rec_control THRESHOLD=95 TRACE=no ./recursor-test 5300 100 {threads} {mthreads} {shards}') | ||
c.run(f'DNSBULKTEST=/usr/bin/dnsbulktest RECURSOR=/opt/pdns-recursor/sbin/pdns_recursor RECCONTROL=/opt/pdns-recursor/bin/rec_control IPv6={ipv6} THRESHOLD=95 TRACE=no ./recursor-test 5300 {size} {threads} {mthreads} {shards}') | ||
|
||
@task | ||
def install_swagger_tools(c): | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As this job uses Ubicloud runners, which may impact forks, I suggest adding a repository variable to check if Ubicloud runners are available. Something like
BULK_TESTS_USE_UBICLOUD=1
(or a much better name) as a condition for running the job: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.
OK, but how do I set this var in our own repo?
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.
Variables are added at the repository level in
Settings -> Secrets and Variables -> Actions -> Variables (tab) -> New Repository Variable
This has to be done by someone with enough privileges. I cannot see Settings for this repository, only for my fork. I have asked @Habbie for this in the past.
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.
I can do that
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.
Hmm, I've set
REC_BULKTEST_USE_UBICLOUD
to1
, but the job is now skipped....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.
It's because vars are not set on PRs from a fork.