8000 Refactor cloe-launch by cassava · Pull Request #201 · eclipse/cloe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor cloe-launch #201

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

Merged
merged 25 commits into from
May 6, 2024
Merged

Refactor cloe-launch #201

merged 25 commits into from
May 6, 2024

Conversation

cassava
Copy link
Contributor
@cassava cassava commented Dec 5, 2023

Depends on #193.

BREAKING CHANGE:

  • Change command line argument structure
  • Remove concept of profiles along with associated flags and subcommand

New:

  • Subcommand deploy deploys everything to a single folder for redistribution.

Improvements:

  • Fail when patchelf does not exist
  • Provide better help messages on failure
  • Reformat Conan output on failure

Development:

  • Fix several linter complaints

@cassava cassava added this 8000 to the 0.22.0 milestone Dec 5, 2023
@cassava cassava self-assigned this Dec 5, 2023
@cassava cassava requested a review from tobifalk as a code owner December 5, 2023 16:40
@cassava cassava added the breaking change Pull requests that are potentially backwards incompatible label Dec 6, 2023
Copy link
@clonker clonker left a comment

Choose a reason for hiding this comment

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

  • there is a funny mix between os.path and pathlib within this pr and the module in general, i think it is worth to clean that up a bit
  • i feel like there was perhaps one file duplicated?
  • unsure about platform dependence and what is the desired outcome here
  • generally i think if you have a public method that is decorated, the decorators should probably also be public? perhaps debatable, it just looks funny to me to have an @_options.xyz() decorator

@cassava cassava modified the milestones: 0.22.0, 0.23.0, 0.24.0 Mar 27, 2024
@cassava cassava force-pushed the ben/refactor-cli branch 2 times, most recently from 2e45a0a to d855635 Compare April 29, 2024 12:39
cassava added 18 commits May 6, 2024 11:31
This allows you to deploy a configuration to a directory:

    cloe-launch -v deploy -P engine/tests/conanfile_with_server.py /usr/local

This deployment should work without any further setup required.

An uninstaller is created at ~/.cache/cloe/launcher/UUID/uinstall.sh
where UUID is unique and determined from the configuration.
Readability and consistency are more important than performance here.
BREAKING CHANGE: This fundamentally changes how cloe-launch
parses arguments. They now have the form:

    cloe-launch [OPTS] COMMAND [CMD_OPTS] CONANFILE [CONAN_INSTALL_ARGS] [-- ARGS]

For commands such as `shell` and `exec` it's now necessary to use `--`
to pass arguments to them. It is also no longer possible to provide
options to the cloe-launch command after specifying the conanfile.
These now go to conan.
And make commands.options a protected module.
This should result in more reliable builds by default.
This option lets you prevent Python configuration files from
being loaded from CLOE_PLUGIN_PATH.
An empty entry in LD_LIBRARY_PATH is interpreted as the current
working directory. Conan sets LD_LIBRARY_PATH in such a way that
it inserts an empty entry, inadvertently.
@cassava cassava force-pushed the ben/refactor-cli branch from 8995aa5 to a08e07d Compare May 6, 2024 09:35
cassava added 3 commits May 6, 2024 11:38
This is important to let the user know that something is happening,
if for example conan is doing something that takes a long time.

This commit resolves eclipse/cloe issue #219.
And update Configuration type to use Path types instead of os.path.
@cassava cassava force-pushed the ben/refactor-cli branch from a08e07d to 7e6f5fa Compare May 6, 2024 09:39
@cassava cassava merged commit 4c193c1 into master May 6, 2024
8 checks passed
@cassava cassava deleted the ben/refactor-cli branch May 6, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Pull requests that are potentially backwards incompatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0