-
Notifications
You must be signed in to change notification settings - Fork 1
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
DAOS-15079 test: VMD Hot Plug - Support rpc.py in spdk-tools package #61
Merged
Merged
Changes from 12 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
50a10b6
DAOS-15079 test: update packaging subsystem
grom72 de677b2
DAOS-15079 test: VMD Hot Plug - Support rpc.py in spdk-tools package
shimizukko b2f241a
DAOS-15079 test: Update comment
shimizukko eb4f178
DAOS-15079 test: install all rpc.py dependencies
grom72 9df51e4
DAOS-15079 test: skip Centos7 build
grom72 25c8959
DAOS-15079 test: Fix rpmlint error
grom72 ff5daeb
DAOS-15079 test: update changelog
grom72 61a0c87
DAOS-15079 test: extend Debian package build procedure
grom72 57473fb
DAOS-15079 test: add examples installation for Debian to spdk-tools
grom72 2c4375a
DAOS-15079 test: install all scripts from spdk-tools
grom72 ac97db1
DAOS-15079 test: remove redundant files
grom72 a67b2c0
DAOS-15079 test: update changelog
grom72 e052b86
Update changelog and test with proper tag on dedicated branch.
grom72 62bc83a
Update changelog and test with proper tag on dedicated branch.
grom72 bab6f95
Rebuild with tests run on ci_vmd5 cluster
grom72 bfa67a9
Test in typical (default) configuration.
grom72 b382b24
Just a skip list
janekmi bff2471
Update packaging
janekmi c648e35
Adjust skip lists
janekmi 5ebd278
Adjust skip lists
janekmi 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
spdk (22.01.2-6) unstable; urgency=medium | ||
|
||
[ Tomasz Gromadzki ] | ||
* Add rpc.py to spdk-tools package. | ||
* Synchronize Debian package with RPMs by adding examples to spdk-tools package. | ||
|
||
-- Tomasz Gromadzki <[email protected]> Tue, 12 Mar 2024 00:00:00 +0000 | ||
|
||
spdk (22.01.2-3) unstable; urgency=medium | ||
|
||
[ Tom Nabarro ] | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ Priority: optional | |
Maintainer: daos-stack <[email protected]> | ||
Build-Depends: | ||
debhelper, | ||
python, | ||
python3, | ||
libdpdk-dev (>= 21.11.2), | ||
librdmacm-dev, | ||
libibverbs-dev, | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
usr/include/* | ||
lib/x86_64-linux-gnu/lib*.so | ||
lib/x86_64-linux-gnu/lib*.a | ||
lib/x86_64-linux-gnu/pkgconfig/* | ||
lib/x86_64-linux-gnu/pkgconfig/* |
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 |
---|---|---|
@@ -1 +1 @@ | ||
lib/x86_64-linux-gnu/lib*.so.* | ||
lib/x86_64-linux-gnu/lib*.so.* |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
usr/share/spdk-tools/scripts | ||
usr/include/spdk | ||
usr/share/spdk-tools/python | ||
usr/share/spdk-tools/python/rpc |
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
usr/bin/* | ||
usr/bin/* | ||
scripts/{setup,common}.sh usr/share/spdk-tools/scripts | ||
include/spdk/pci_ids.h usr/include/spdk | ||
scripts/rpc.py usr/share/spdk-tools/python | ||
scripts/rpc/*.py usr/share/spdk-tools/python/rpc | ||
build/examples/spdk_lsvmd usr/bin/ | ||
build/examples/spdk_nvme_manage usr/bin/ |
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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
From e87d916d7f49ea4949973adf0f09e9e5bf891e03 Mon Sep 17 00:00:00 2001 | ||
From: "Brian J. Murrell" <[email protected]> | ||
Date: Tue, 30 Jan 2024 11:03:12 -0500 | ||
Subject: [PATCH 1/2] Show ccache stats at the end of the build | ||
|
||
Zero the ccache stats at the beginning of the build and then display the | ||
ccache stats at the end of the build to see how effective ccache was. | ||
|
||
Signed-off-by: Brian J. Murrell <[email protected]> | ||
--- | ||
mock/py/mockbuild/plugins/ccache.py | 11 +++++++++++ | ||
1 file changed, 11 insertions(+) | ||
|
||
diff --git a/mock/py/mockbuild/plugins/ccache.py b/mock/py/mockbuild/plugins/ccache.py | ||
index 2666ad9fc..1080ffe68 100644 | ||
--- a/mock/py/mockbuild/plugins/ccache.py | ||
+++ b/mock/py/mockbuild/plugins/ccache.py | ||
@@ -35,6 +35,7 @@ def __init__(self, plugins, conf, buildroot): | ||
buildroot.preexisting_deps.append("ccache") | ||
plugins.add_hook("prebuild", self._ccacheBuildHook) | ||
plugins.add_hook("preinit", self._ccachePreInitHook) | ||
+ plugins.add_hook("postbuild", self._ccachePostBuildHook) | ||
buildroot.mounts.add( | ||
BindMountPoint(srcpath=self.ccachePath, bindpath=buildroot.make_chroot_path("/var/tmp/ccache"))) | ||
|
||
@@ -47,6 +48,9 @@ def __init__(self, plugins, conf, buildroot): | ||
@traceLog() | ||
def _ccacheBuildHook(self): | ||
self.buildroot.doChroot(["ccache", "-M", str(self.ccache_opts['max_cache_size'])], shell=False) | ||
+ # zero ccache stats | ||
+ getLog().info("Zero ccache stats:") | ||
+ self.buildroot.doChroot(["ccache", "--zero-stats"], printOutput=True, shell=False) | ||
|
||
# set up the ccache dir. | ||
# we also set a few variables used by ccache to find the shared cache. | ||
@@ -61,3 +65,10 @@ def _ccachePreInitHook(self): | ||
file_util.mkdirIfAbsent(self.buildroot.make_chroot_path('/var/tmp/ccache')) | ||
file_util.mkdirIfAbsent(self.ccachePath) | ||
self.buildroot.uid_manager.changeOwner(self.ccachePath, recursive=True) | ||
+ | ||
+ # get some cache stats | ||
+ def _ccachePostBuildHook(self): | ||
+ # show the cache hit stats | ||
+ getLog().info("ccache stats:") | ||
+ self.buildroot.doChroot(["ccache", "--show-stats"], printOutput=True, shell=False) | ||
++ | ||
|
||
From bfd3a7e1bb47d28ee60a94cb5985c1f66476475f Mon Sep 17 00:00:00 2001 | ||
From: "Brian J. Murrell" <[email protected]> | ||
Date: Tue, 30 Jan 2024 11:17:48 -0500 | ||
Subject: [PATCH 2/2] Remove extraneous line | ||
|
||
Signed-off-by: Brian J. Murrell <[email protected]> | ||
--- | ||
mock/py/mockbuild/plugins/ccache.py | 1 - | ||
1 file changed, 1 deletion(-) | ||
|
||
diff --git a/mock/py/mockbuild/plugins/ccache.py b/mock/py/mockbuild/plugins/ccache.py | ||
index 1080ffe68..1a20846d3 100644 | ||
--- a/mock/py/mockbuild/plugins/ccache.py | ||
+++ b/mock/py/mockbuild/plugins/ccache.py | ||
@@ -71,4 +71,3 @@ def _ccachePostBuildHook(self): | ||
# show the cache hit stats | ||
getLog().info("ccache stats:") | ||
self.buildroot.doChroot(["ccache", "--show-stats"], printOutput=True, shell=False) | ||
-+ |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# find the base branch of the current branch | ||
|
||
set -eux -o pipefail | ||
IFS=' ' read -r -a add_bases <<< "${1:-}" | ||
origin=origin | ||
mapfile -t all_bases < <(echo "master" | ||
git branch -r | sed -ne "/^ $origin\\/release\\/[0-9]/s/^ $origin\\///p") | ||
all_bases+=("${add_bases[@]}") | ||
TARGET="master" | ||
min_diff=-1 | ||
for base in "${all_bases[@]}"; do | ||
git rev-parse --verify "$origin/$base" &> /dev/null || continue | ||
commits_ahead=$(git log --oneline "$origin/$base..HEAD" | wc -l) | ||
if [ "$min_diff" -eq -1 ] || [ "$min_diff" -gt "$commits_ahead" ]; then | ||
TARGET="$base" | ||
min_diff=$commits_ahead | ||
fi | ||
done | ||
echo "$TARGET" | ||
exit 0 |
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
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.
Do we know of any tests in DAOS'
src/tests/ftest
that would exercise this change? If so, we should add it's/their tags to this tag list. Maybe @tanabarr might know of some tests that would be applicable?Maybe there are no tests yet because this change needs to be made in order to write some tests that would use this new addition?
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.
This PR is required for new tests to be implemented by @shimizukko.
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.
Is there a PR open for those (@shimizukko)? If not, do we have any idea of what the test tags will be for those tests so that we can preemptively add those tags here so they are not forgotten about?
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.
The test that will use this PR is: daos-stack/daos#13620
It assumes
/usr/share/spdk/scripts/rpc.py
exists in the environment. The test tag istest_no_activity