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

Some new thoughts on cutting a release, especially scripts/release.sh #309

Merged
merged 37 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3dd1c9c
Some new thoughts on cutting a release, especially scripts/release.sh
daw3rd Jun 19, 2024
04fb1dc
Minor updates to release.sh script
daw3rd Jun 20, 2024
98a41b5
Update repo.md for 2 make users and add workflow test of global make …
daw3rd Jun 20, 2024
2d006a5
Update release.sh script for testing
daw3rd Jun 20, 2024
cc6b3aa
more testing or release.sh script
daw3rd Jun 20, 2024
4fc4f9c
More release.sh
daw3rd Jun 20, 2024
8de2c49
Revert to dev versions
daw3rd Jun 20, 2024
e49cbaa
release.sh
daw3rd Jun 20, 2024
db921b9
release.sh
daw3rd Jun 20, 2024
1451277
release.sh
daw3rd Jun 20, 2024
c276b71
release.sh
daw3rd Jun 20, 2024
a026584
release.sh
daw3rd Jun 20, 2024
4b6f41b
release.sh
daw3rd Jun 20, 2024
15317ef
release.sh
daw3rd Jun 20, 2024
7d5ca76
updated repo.md on makefiles
daw3rd Jun 20, 2024
679d637
Merge branch 'dev' into releasing
daw3rd Jun 20, 2024
c85c68a
add publish target to superworkflows Makefile
daw3rd Jun 20, 2024
2a7bcb9
More release work
daw3rd Jun 20, 2024
12f315b
add publish target to kind/Makefile
daw3rd Jun 20, 2024
6c0d4ab
install ../python for spark transforms in .make.defaults
daw3rd Jun 21, 2024
f6bd444
fix kfp set versions, and noop versions
daw3rd Jun 21, 2024
103f559
Fix versioning in .make* and typo in noop/ray/pyproject.tmo
daw3rd Jun 21, 2024
7b3be84
Merge branch 'dev' into releasing
daw3rd Jun 21, 2024
7f7a264
comments and dont created empty pyproject.toml in .make.defaults
daw3rd Jun 21, 2024
52e4eb7
update release.sh to apply final version changes
daw3rd Jun 21, 2024
6211b50
Version updates, version setting fixes, noop spark Dockerfile,
daw3rd Jun 21, 2024
af8ce1c
Merge branch 'dev' into releasing
daw3rd Jun 21, 2024
51fe74c
set-versions inputcode2parquet'
daw3rd Jun 21, 2024
3db00f7
restore INGEST_TO_PARQUET_VERSION removed in recent commit"
daw3rd Jun 21, 2024
caa42b4
updated repo.md to point to include link to transform conventions
daw3rd Jun 21, 2024
b43683f
fix transform link added to repo.md in last commit
daw3rd Jun 21, 2024
fcc6136
Merge branch 'dev' into releasing
daw3rd Jun 23, 2024
67d3357
fixed code2parquet versions from last merge and uninstall libs in bet…
daw3rd Jun 23, 2024
37a24d0
Merge branch 'dev' into releasing
daw3rd Jun 24, 2024
40ccc4c
remove redundant pip uninstall in .make.defaults
daw3rd Jun 24, 2024
0123b7e
Fix transform version settings when python transform code is referenced
daw3rd Jun 24, 2024
87a7549
.make.versions changes - remove redancy and unused macros, and define…
daw3rd Jun 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 34 additions & 29 deletions .make.versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,55 @@
# % make RELEASE_VERSION_SUFFIX= set-version
# % git push, tag, etc.
# % make build, publish, etc.
RELEASE_VERSION_SUFFIX=.dev6
DPK_MAJOR_VERSION=0
DPK_MINOR_VERSION=2
DPK_MICRO_VERSION=0
DPK_VERSION_SUFFIX=.dev6

DPK_VERSION=$(DPK_MAJOR_VERSION).$(DPK_MINOR_VERSION).$(DPK_MICRO_VERSION)$(DPK_VERSION_SUFFIX)

# Data prep lab wheel version
DPK_LIB_VERSION=0.2.0$(RELEASE_VERSION_SUFFIX)
DPK_LIB_KFP_VERSION=0.2.0$(RELEASE_VERSION_SUFFIX)
DPK_LIB_KFP_VERSION_v2=0.2.0$(RELEASE_VERSION_SUFFIX)
DPK_LIB_KFP_SHARED=0.2.0$(RELEASE_VERSION_SUFFIX)
DPK_LIB_VERSION=$(DPK_VERSION)
DPK_LIB_KFP_VERSION=$(DPK_VERSION)
DPK_LIB_KFP_VERSION_v2=$(DPK_VERSION)
DPK_LIB_KFP_SHARED=$(DPK_VERSION)

# Begin transform versions/tags
BLOCKLIST_VERSION=0.4.2$(RELEASE_VERSION_SUFFIX)
BLOCKLIST_VERSION=$(DPK_VERSION)

DOC_ID_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
DOC_ID_SPARK_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
DOC_ID_RAY_VERSION=$(DPK_VERSION)
DOC_ID_SPARK_VERSION=$(DPK_VERSION)

EDEDUP_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
EDEDUP_RAY_VERSION=$(DPK_VERSION)

FDEDUP_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
FDEDUP_RAY_VERSION=$(DPK_VERSION)

FILTER_PYTHON_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
FILTER_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
FILTER_SPARK_VERSION=0.2.0$(RELEASE_VERSION_SUFFIX)
FILTER_PYTHON_VERSION=$(DPK_VERSION)
FILTER_RAY_VERSION=$(DPK_VERSION)
FILTER_SPARK_VERSION=$(DPK_VERSION)

NOOP_PYTHON_VERSION=0.9.0$(RELEASE_VERSION_SUFFIX)
NOOP_RAY_VERSION=0.9.0$(RELEASE_VERSION_SUFFIX)
NOOP_SPARK_VERSION=0.2.0$(RELEASE_VERSION_SUFFIX)
PROFILER_VERSION=0.2.0$(RELEASE_VERSION_SUFFIX)
NOOP_PYTHON_VERSION=$(DPK_VERSION)
NOOP_RAY_VERSION=$(DPK_VERSION)
NOOP_SPARK_VERSION=$(DPK_VERSION)
PROFILER_VERSION=$(DPK_VERSION)

RESIZE_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
RESIZE_VERSION=$(DPK_VERSION)

LANG_ID_PYTHON_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
LANG_ID_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
LANG_ID_PYTHON_VERSION=$(DPK_VERSION)
LANG_ID_RAY_VERSION=$(DPK_VERSION)

TOKENIZATION_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
TOKENIZATION_PYTHON_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
TOKENIZATION_RAY_VERSION=$(DPK_VERSION)
TOKENIZATION_PYTHON_VERSION=$(DPK_VERSION)

MALWARE_RAY_VERSION=0.5.0$(RELEASE_VERSION_SUFFIX)
MALWARE_RAY_VERSION=$(DPK_VERSION)

PROGLANG_SELECT_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
PROGLANG_SELECT_RAY_VERSION=$(DPK_VERSION)

CODE_QUALITY_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
CODE_QUALITY_RAY_VERSION=$(DPK_VERSION)

INGEST_TO_PARQUET_RAY_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
INGEST_TO_PARQUET_VERSION=0.4.0$(RELEASE_VERSION_SUFFIX)
INGEST_TO_PARQUET_RAY_VERSION=$(DPK_VERSION)
INGEST_TO_PARQUET_VERSION=$(DPK_VERSION)


KFP_DOCKER_VERSION=0.2.0$(RELEASE_VERSION_SUFFIX)
KFP_DOCKER_VERSION_v2=0.2.0$(RELEASE_VERSION_SUFFIX)
KFP_DOCKER_VERSION=$(DPK_VERSION)
KFP_DOCKER_VERSION_v2=$(DPK_VERSION)
30 changes: 21 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,27 @@ set-versions:
@# Help: Recursively $@ in all subdirs
@$(MAKE) RULE=$@ .recurse

lib-release:
@# Help: Publish data-prep-kit $(DPK_LIB_VERSION) and data-prep-kit-kfp $(DPK_LIB_KFP_VERSION) libraries to pypi
@$(MAKE) -C $(DPK_PYTHON_LIB_DIR) build publish
@$(MAKE) -C $(DPK_RAY_LIB_DIR) build publish
@$(MAKE) -C $(DPK_SPARK_LIB_DIR) build publish
@$(MAKE) -C kfp/kfp_support_lib build publish
@echo ""
@echo "This modified files in the repo. Please be sure to commit/push back to the repository."
@echo ""
#set-release-verions:
# @# Help: Update all internally used versions to not include the release suffix.
# @$(MAKE) DPK_VERSION_SUFFIX= set-versions

#lib-release:
# @# Help: Set versions to be unsuffixed and publish libraries
# @$(MAKE) set-release-versions
# @$(MAKE) publish-lib

show-version:
@echo $(DPK_VERSION)

#publish-lib:
# @# Help: Publish data-prep-kit $(DPK_LIB_VERSION) and data-prep-kit-kfp $(DPK_LIB_KFP_VERSION) libraries to pypi
# @$(MAKE) -C $(DPK_PYTHON_LIB_DIR) build publish
# @$(MAKE) -C $(DPK_RAY_LIB_DIR) build publish
# @$(MAKE) -C $(DPK_SPARK_LIB_DIR) build publish
# @$(MAKE) -C kfp/kfp_support_lib build publish
# @echo ""
# @echo "This modified files in the repo. Please be sure to commit/push back to the repository."
# @echo ""



44 changes: 44 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
DEFAULT_BRANCH=dev
# Assume this file is in the reporoot/scripts directory
reporoot=$(dirname $0)/..
cd $reporoot

# Make sure we're starting from the base branch
# git checkout $DEFAULT_BRANCH

# Get the currently defined version w/o any suffix. This is the next release version
# version=$(make DPK_VERSION_SUFFIX= show-version)
# tag=v$version

# Create a new branch for this version and switch to it
# git branch -r release/$tag

# Remove the release suffix in this branch
# cat .make.versions | sed -e 's/^DPK_VERSION_SUFFIX.*/DPK_VERSION_SUFFIX=/' > tt
# mv tt .make.version

# Apply the unsuffixed version to the repo and check it into this release branch
# make set-versions
# git add -A
# git commit -s -m "Cut release $version"
# git push origin
# git tag -a -s -m "Cut release $version" $tag
# git push origin $tag

# Now build with the updated version
# make build publish

# Now go back to the default branch so we can bump the minor version number and reset the version suffix
# git branch $DEFAULT_BRANCH

# Change to the next development version (bumped minor version with suffix).
minor=$(cat .make.versions | grep '^DPK_MINOR_VERSION=' | sed -e 's/DPK_MINOR_VERSION=\([0-9]*\).*/\1/')
minor=$(($minor + 1))
#cat .make.versions | sed -e "s/^DPK_MINOR_VERSION=.*/DPK_MINOR_VERSION=$minor/" \
# -e "s/^DPK_VERSION_SUFFIX=.*/DPK_VERSION_SUFFIX=.dev0/" > tt
#mv tt .make.versions

# Push the version change back to the origin
# git add -A
# git commit -s -m "Bump minor version to $minor after cutting release $version"
# git push origin
9 changes: 4 additions & 5 deletions transforms/universal/profiler/kfp_ray/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ image::

load-image::

set-versions: workflow-reconcile-requirements
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please rebase, this should be fixed now in dev branch. thanks

Copy link
Member Author

Choose a reason for hiding this comment

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

done


.PHONY: workflow-build
workflow-build: workflow-venv
$(MAKE) $(YAML_WF)
Expand All @@ -45,8 +43,9 @@ workflow-upload: workflow-build
$(MAKE) .transforms_workflows.upload-pipeline PIPELINE_FILE=$$file; \
done

.PHONY: workflow-reconcile-requirements
workflow-reconcile-requirements:
.PHONY: set-versions
set-versions:
@for file in $(PYTHON_WF); do \
$(MAKE) .transforms_workflows.reconcile-requirements PIPELINE_FILE=$$file; \
$(MAKE) .workflows.set-versions PIPELINE_FILE=$$file; \
done