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

Update vale to "official" version 0.12.0 #794

Merged
merged 2 commits into from
Jan 15, 2021

Conversation

tsmaeder
Copy link
Contributor

Signed-off-by: Thomas Mäder [email protected]

What does this PR do?

Updates vale sidecar to 2.8.0 and extensions to the one from "errata.ai" v 0.12.0

What issues does this PR fix or reference?

eclipse-che/che#18755

How to test this PR?

  1. Open a che docs workspace (using https://github.com/eclipse/che-docs/blob/master/devfile.yaml) and change the devfile to point to the version of the plugin referenced in this PR.
  2. Set the "Use CLI" preference in the "Vale" section to true. (unfortunately, we can't do this in a meta.yml).
  3. Open various .adoc files: many of them should have errors and warnings coming from vale.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

FROM alpine:3.12.1

ENV HOME=/home/theia
ENV VALE_VERSION=2.4.0

COPY --from=vale /bin/vale /usr/local/bin
Copy link
Contributor

@benoitf benoitf Jan 13, 2021

Choose a reason for hiding this comment

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

hello, why do we copy from a docker image the binary instead of the release as before ?
(because docker.io has limits so it might be an issue to use it)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the published binaries don't run on alpine. Using ldd, you can see that they are dynlinked to libc.

url: https://github.com/testthedocs/vscode-vale
revision: 0.9.1
url: https://github.com/errata-ai/vale-vscode/
revision: 0.12.0
Copy link
Contributor

Choose a reason for hiding this comment

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

A few things:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why would that matter? The vsix is from open-vsx, not built.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also: the latest version published to open-vsx is 0.12. Since we can't use the marketplace 🤷

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

The revision field must match a valid tag/branch/SHA1 from the repository, which in this case would be v0.12.0, or v0.14.2 if we go with 0.14.2.

@ericwill the CI job is not checking that revision is valid ?

@tsmaeder AFAIK this field is used by the plug-in 'automatic-check' that generates report https://eclipse.github.io/che-plugin-registry/

Copy link
Contributor

Choose a reason for hiding this comment

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

The revision field must match a valid tag/branch/SHA1 from the repository, which in this case would be v0.12.0, or v0.14.2 if we go with 0.14.2.

@ericwill the CI job is not checking that revision is valid ?

It was for the old vscode-extensions.json file, it has not yet been ported to the new che-theia-plugins.yaml system. It's on the radar for next sprint: eclipse-che/che#18729

@@ -8,19 +8,20 @@
# Contributors:
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably update the copyright header to 2021.

Signed-off-by: Thomas Mäder <[email protected]>
@ericwill ericwill merged commit 2b98722 into eclipse-che:master Jan 15, 2021
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.

3 participants