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

marker(markdown linter): use released binary when running markdown lint #18318

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented Jul 13, 2024

The markdown linter, marker, now publishes a released version with the tool. Given that this project is written in Rust, running this check can now be done by using the statically compiled binary without having the Rust local environment.

Part of #18059.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

The markdown linter, marker, now publishes a released version with the
tool. Given that this project is written in Rust, running this check can
now be done by using the statically compiled binary without having the
Rust local environment.

Signed-off-by: Ivan Valdes <[email protected]>
@ivanvc
Copy link
Member Author

ivanvc commented Jul 13, 2024

This enables this linter to work on the prow infrastructure. Refer to: https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/etcd-io_etcd/18318/pull-etcd-verify/1812260372736905216#1:build-log.txt%3A649-653

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.00%. Comparing base (eeeb7e0) to head (431bd92).

Current head 431bd92 differs from pull request most recent head 4f9cd33

Please upload reports for the commit 4f9cd33 to get more accurate results.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

see 19 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #18318   +/-   ##
=======================================
  Coverage   69.00%   69.00%           
=======================================
  Files         417      417           
  Lines       35332    35332           
=======================================
  Hits        24380    24380           
+ Misses       9540     9537    -3     
- Partials     1412     1415    +3     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eeeb7e0...4f9cd33. Read the comment docs.

@ivanvc
Copy link
Member Author

ivanvc commented Jul 13, 2024

/retest

generic_checker run marker --skip-http --allow-absolute-paths --root "${ETCD_ROOT_DIR}" -e ./CHANGELOG -e ./etcdctl -e etcdutl -e ./tools 2>&1
if ! tool_exists "$marker" "https://crates.io/crates/marker"; then
log_callout "Installing markdown marker $MARKDOWN_MARKER_VERSION"
wget -qO- "https://github.com/crawford/marker/releases/download/${MARKDOWN_MARKER_VERSION}/marker-${MARKDOWN_MARKER_VERSION}-x86_64-unknown-linux-musl.tar.gz" | tar -xzv -C /tmp/ --strip-components=1 >/dev/null
Copy link
Member

Choose a reason for hiding this comment

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

You only download x86 version, I am curious why all the workflows running on arm64 also passed?

Copy link
Member Author

Choose a reason for hiding this comment

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

This runs only on the pull-etcd-verify job, which doesn't run on arm64.

@jmhbnz
Copy link
Member

jmhbnz commented Jul 14, 2024

/retest

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Fantastic work raising upstream feature request to get this across the line @ivanvc

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, ivanvc, jmhbnz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ivanvc ivanvc changed the title marker: use released binary when running markdown lint marker(markdown linter): use released binary when running markdown lint Jul 15, 2024
@jmhbnz jmhbnz merged commit e7f5729 into etcd-io:main Jul 15, 2024
44 checks passed
@ivanvc ivanvc deleted the verify-marker-with-released-artifact branch July 15, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants