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

Align stdeb dependencies with setup.py #1073

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdeb.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Depends: python-argparse, python-catkin-pkg-modules, python-ros-buildfarm-module
; ros-buildfarm-modules same version (without the branch suffix) as in:
; - ros_buildfarm/__init__.py
; - setup.py
Depends3: python3-catkin-pkg-modules, python3-ros-buildfarm-modules (>= 3.0.0), python3-rosdistro-modules (>= 1.0.0), python3-yaml
Depends3: python3-catkin-pkg-modules (>= 0.2.6), python3-ros-buildfarm-modules (>= 3.0.0), python3-rosdistro-modules (>= 1.0.0), python3-yaml
Conflicts: python3-ros-buildfarm
Conflicts3: python-ros-buildfarm
Suite: xenial yakkety zesty artful bionic cosmic disco eoan stretch buster
Expand All @@ -17,7 +17,7 @@ Setup-Env-Vars: SKIP_PYTHON_MODULES=1

[ros_buildfarm_modules]
Depends: python-catkin-pkg-modules, python-configparser, python-empy, python-rosdistro-modules (>= 1.0.0), python-yaml, python3-empy, python3-vcstool (>= 0.1.37)
Depends3: python3-catkin-pkg-modules, python3-empy, python3-rosdistro-modules (>= 1.0.0), python3-vcstool (>= 0.1.37), python3-yaml
Depends3: python3-catkin-pkg-modules (>= 0.2.6), python3-empy (< 4), python3-jenkinsapi, python3-rosdistro-modules (>= 1.0.0), python3-vcstool (>= 0.1.37), python3-yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not objecting to the change here. I believe the omission of jenkinsapi was intentional to allow installation without jenkins support. To continue that it might make dense to make it an optional dependency via Recommends or Suggests but I'm not opposed to making it a hard dependency. Requests, BeautifulSoup, and lxml are fairly large dependencies but as I'm leaning towards dropping the jenkinsapi dependency in favor of more direct REST API usage within ros_buildfarm I think of those as temporary. They're also already necessary if you're using the Jenkins support.

Copy link
Member Author

Choose a reason for hiding this comment

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

As great as that sounds, I don't think it is working in practice:

$ python3 -m ros_buildfarm.scripts.release.generate_release_script https://raw.githubusercontent.com/ros2/ros_buildfarm_config/refs/heads/ros2/index.yaml rolling default ament_package ubuntu noble amd64 > job.sh
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "~/infra_ws/install/ros_buildfarm/lib/python3.12/site-packages/ros_buildfarm/scripts/release/generate_release_script.py", line 31, in <module>
    from ros_buildfarm.release_job import configure_release_job
  File "~/infra_ws/install/ros_buildfarm/lib/python3.12/site-packages/ros_buildfarm/release_job.py", line 45, in <module>
    from ros_buildfarm.jenkins import JenkinsProxy
  File "~/infra_ws/install/ros_buildfarm/lib/python3.12/site-packages/ros_buildfarm/jenkins.py", line 22, in <module>
    from jenkinsapi.jenkins import Jenkins
ModuleNotFoundError: No module named 'jenkinsapi'

I'm not sure how easy it would be to reorganize the modules in ros_buildfarm to support this scenario, but it's probably a lot more work than I'm willing to bite off right now.

Note that we're not currently using the ros_buildfarm in deb form anywhere, so there's really no opportunity for regression here.

Conflicts: python-ros-buildfarm (<< 1.3.0)
Conflicts3: python3-ros-buildfarm (<< 1.3.0)
Replaces: python-ros-buildfarm (<< 1.3.0)
Expand Down
Loading