8000 Fixed pattern matching for task IDs in 'task exec'. by klueska · Pull Request #1189 · dcos/dcos-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed pattern matching for task IDs in 'task exec'. #1189

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 1 commit into from
Mar 28, 2018
Merged

Fixed pattern matching for task IDs in 'task exec'. #1189

merged 1 commit into from
Mar 28, 2018

Conversation

klueska
Copy link
Contributor
@klueska klueska commented Mar 27, 2018

Previously, there were problems with the way patterns were matched for
the task ID when calling task exec. Specifically, it didn't follow the
semantics indicated in the help string for (1) matching regular
expressions and (2) matching any substring within the ID, not just the
prefix of the ID.

The reason we did not adhere to these semantics is because we were
trying to match the exact semantics of docker exec, which only allows
prefix matching, not arbitrary regex or 'contains()' like semantics for
pattern matching the ID.

With this change, we have decided to break from the docker semantics and
use the default pattern matching semantics provided by the dcos-cli
library command for pattern matching task ids.

Unfortunately, there is a bug in this library, and regular expressions
are not supported! However, arbitrary substring pattern mathing is.

This commit, therefore, updates the semantics of task exec to adhere
to 'contains()' like smeantics within the task ID for the 'task_id'
parameter passed to it, but does not yet support proper regular
expression pattern matching.

A subsequent commit will be added to fix regex matching in library call
implementing task ID pattern matching.

@klueska
Copy link
Contributor Author
klueska commented Mar 27, 2018

run linux integration tests

@klueska
Copy link
Contributor Author
klueska commented Mar 28, 2018

run mac integration tests

@klueska
Copy link
Contributor Author
klueska commented Mar 28, 2018

run windows integration tests

Previously, there were problems with the way patterns were matched for
the task ID when calling `task exec`. Specifically, it didn't follow the
semantics indicated in the help string for (1) matching regular
expressions and (2) matching any substring within the ID, not just the
prefix of the ID.

The reason we did not adhere to these semantics is because we were
trying to match the exact semantics of `docker exec`, which only allows
prefix matching, not arbitrary regex or 'contains()' like semantics for
pattern matching the ID.

With this change, we have decided to break from the docker semantics and
use the default pattern matching semantics provided by the dcos-cli
library command for pattern matching task ids.

Unfortunately, there is a bug in this library, and regular expressions
are not supported! However, arbitrary substring pattern mathing is.

This commit, therefore, updates the semantics of `task exec` to adhere
to 'contains()' like smeantics within the task ID for the 'task_id'
parameter passed to it, but does not yet support proper regular
expression pattern matching.

A subsequent commit will be added to fix regex matching in library call
implementing task ID pattern matching.
@bamarni bamarni merged commit 207d71f into dcos:master Mar 28, 2018
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.

2 participants
0