Skip to content

Adding jenkins job for maintainer tool#2068

Open
deepalik21 wants to merge 4 commits intoceph:mainfrom
deepalik21:ceph-maintainer-tool-build
Open

Adding jenkins job for maintainer tool#2068
deepalik21 wants to merge 4 commits intoceph:mainfrom
deepalik21:ceph-maintainer-tool-build

Conversation

@deepalik21
Copy link
Copy Markdown

Signed-off-by: Deepali Kasture dkasture@redhat.com

@ceph-jenkins
Copy link
Copy Markdown

Can one of the admins verify this patch?

Comment thread ceph-maintainer-tool/build/build Outdated
Comment on lines +3 to +5
cat > maintainer-tool.py
mkdir maintainer-tool
cd maintainer-tool
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are these lines here? What are they for?

Comment thread ceph-maintainer-tool/build/build Outdated
Comment on lines +7 to +13
cd ceph-maintainer-tool
cp maintainer-tool.py ../../maintainer-tool.py
rm -rf .git*
cd ..
rmdir -r ceph-maintainer-tool
cd ..
rmdir maintainer-tool
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are you doing all this moving things around?

Comment thread ceph-maintainer-tool/build/build Outdated
rmdir -r ceph-maintainer-tool
cd ..
rmdir maintainer-tool
python maintainer-tool.py src/pybind/mgr/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where is the scanned repo coming from?

block-upstream: false
scm:
- git:
url: git@github.com:ceph/ceph.git
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So this job will only be scanning ceph?
Seems like it makes this job less flexible. Is that what you want?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

My approach was to clone the maintainer tool repo and to get the script and run it against the ceph repo.
To test it on my local machine I tried to get this approach.
If there is any other suggestion could you please let me know.

@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from ce5174d to ddfd63e Compare September 19, 2022 17:19
Comment thread ceph-maintainer-tool/build/build Outdated
TEMPVENV=$(create_venv_dir)
VENV=${TEMPVENV}/bin

source $VENV/activate
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

don't think we need to source the venv, and when I tried to execute this on the jenkins, it failed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Removed source venv.

Comment on lines +45 to +46
- ../../../scripts/build_utils.sh
- ../../build/build
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we need this file to be in config/definitions/, and then this relative pathing should work

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed.

@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from ddfd63e to 07ed446 Compare September 23, 2022 14:33
Signed-off-by: Deepali Kasture <dkasture@redhat.com>
@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from 07ed446 to 6461f5e Compare September 23, 2022 14:41
Signed-off-by: Deepali Kasture <dkasture@redhat.com>
@deepalik21 deepalik21 force-pushed the ceph-maintainer-tool-build branch from 80293e4 to f8335db Compare October 28, 2022 18:59
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.

4 participants