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

[21009] Do not require PYTHON_VERSION to be defined in .bat files #4770

Merged
merged 1 commit into from
May 17, 2024

Conversation

Mario-DL
Copy link
Member

@Mario-DL Mario-DL commented May 13, 2024

Description

@MiguelCompany identified an error introduced in #4759 as the PYTHON_VERSION does not necessarily need to be defined when executing the fastdds.bat or ros-discovery.bat scripts.
The change simply requires a specific version of Python only if PYTHON_VERSION is defined.

Tested on Windows.

@Mergifyio backport 2.14.x 2.13.x

Cherry-pick on #4765 and #4766

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • N/A Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • N/A Any new/modified methods have been properly documented using Doxygen.
  • N/A Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • Changes are ABI compatible.
  • Changes are API compatible.
  • N/A New feature has been added to the versions.md file (if applicable).
  • N/A New feature has been documented/Current behavior is correctly described in the documentation.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • N/A Check CI results: changes do not issue any warning.
  • N/A Check CI results: failing tests are unrelated with the changes.

… defined

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
@Mario-DL Mario-DL added this to the v3.0.0 milestone May 13, 2024
@github-actions github-actions bot added the ci-pending PR which CI is running label May 13, 2024
@Mario-DL
Copy link
Member Author

@richiprosima please test windows

@Mario-DL Mario-DL requested review from MiguelCompany and removed request for MiguelCompany May 13, 2024 14:53
tools/fastdds/fastdds.bat Show resolved Hide resolved
@Mario-DL Mario-DL added ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. and removed ci-pending PR which CI is running labels May 16, 2024
@MiguelCompany MiguelCompany merged commit 39e8957 into master May 17, 2024
5 of 23 checks passed
@MiguelCompany MiguelCompany deleted the fix/21009 branch May 17, 2024 05:36
@MiguelCompany
Copy link
Member

@Mergifyio backport 2.14.x 2.13.x

Copy link
Contributor

mergify bot commented May 17, 2024

backport 2.14.x 2.13.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 17, 2024
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 39e8957)
mergify bot pushed a commit that referenced this pull request May 17, 2024
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 39e8957)
Mario-DL added a commit that referenced this pull request May 17, 2024
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
Mario-DL added a commit that referenced this pull request May 17, 2024
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request May 17, 2024
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request May 17, 2024
…tests environment issues. (#4759, #4447, #4770) (#4765)

* Fix Python Installation version in Github CI. Address failing system tests environment issues (#4759)

* Refs #20965: Install a fix python version in ubuntu and windows cis

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #20965: Decide Python environment depending on the version

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #20965: Prevent Qt installation from setting up python in Ubuntu CI

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #20965: Add some comments

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 3b2e781)

# Conflicts:
#	test/system/tools/fastdds/CMakeLists.txt

* Solve conflicts

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Remove use of deprecated FindPythonInterp (#4447)

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Add missing Python3_executable communication test command

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Do not require PYTHON_VERSION to be defined in .bat files (#4770)

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
Co-authored-by: Mario Dominguez <mariodominguez@eprosima.com>
Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
EduPonz pushed a commit that referenced this pull request May 20, 2024
)

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 39e8957)

Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
EduPonz added a commit that referenced this pull request May 20, 2024
…tests environment issues (#4759) (#4766)

* Fix Python Installation version in Github CI. Address failing system tests environment issues (#4759)

* Refs #20965: Install a fix python version in ubuntu and windows cis

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #20965: Decide Python environment depending on the version

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #20965: Prevent Qt installation from setting up python in Ubuntu CI

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Refs #20965: Add some comments

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 3b2e781)

# Conflicts:
#	test/system/tools/fastdds/CMakeLists.txt

* Solve conflicts

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Remove use of deprecated FindPythonInterp (#4447)

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Add missing Python3_executable communication test command

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

* Do not require PYTHON_VERSION to be defined in .bat files (#4770)

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>

---------

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
Co-authored-by: Mario Dominguez <mariodominguez@eprosima.com>
Co-authored-by: Eduardo Ponz Segrelles <eduardoponz@eprosima.com>
EduPonz pushed a commit that referenced this pull request May 24, 2024
)

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
(cherry picked from commit 39e8957)

Co-authored-by: Mario Domínguez López <116071334+Mario-DL@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Ready to be merged. CI and changes have been reviewed and approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants