Skip to content

Run dependency license check in release script - #1367

Merged
kevinjqliu merged 2 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/run-dep-check-on-release
May 22, 2025
Merged

kevinjqliu merged 2 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/run-dep-check-on-release

Conversation

@kevinjqliu

@kevinjqliu kevinjqliu commented May 22, 2025 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #.

What changes are included in this PR?

Adds python3 ./scripts/dependencies.py check to the release script. This will check dependencies' licenses. Helps prevent issue like #1345 where the DEPENDENCIES.rust.tsv files were accidentally removed

Also moved apache license check to the beginning of the release script

Are these changes tested?

Yes, verified by running

ICEBERG_VERSION=0.5.0 ICEBERG_VERSION_RC=2 ./scripts/release.sh

@kevinjqliu
kevinjqliu requested review from Fokko and liurenjie1024 May 22, 2025 04:39
Comment thread scripts/release.sh Outdated
git_branch=release-${release_version}-${rc_version}

echo "> Check license"
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header check

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I thik this incorrect? Here we haven't checked out source code yet.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep! i just double checked.
Previously the script cd into dist and then back to parent before running the license check.
Now it runs the license check in the parent directory before cd'ing into dist

In both cases, the license check runs on repo's root dir

@kevinjqliu
kevinjqliu requested a review from liurenjie1024 May 22, 2025 14:32
@kevinjqliu kevinjqliu changed the title Run dependency license check to release script Run dependency license check in release script May 22, 2025
@kevinjqliu
kevinjqliu merged commit 2f313c9 into apache:main May 22, 2025
@kevinjqliu
kevinjqliu deleted the kevinjqliu/run-dep-check-on-release branch May 22, 2025 22:29
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