Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 0 additions & 11 deletions dev/create-release/release-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ cd spark
git config user.name "$GIT_NAME"
git config user.email "$GIT_EMAIL"

# Remove test jars and classes that do not belong to source releases.
rm $(<dev/test-jars.txt)
:> dev/test-jars.txt
rm $(<dev/test-classes.txt)
:> dev/test-classes.txt
git commit -a -m "Removing test jars and class files"
JAR_RM_REF=$(git rev-parse HEAD)

# Create release version
$MVN versions:set -DnewVersion=$RELEASE_VERSION | grep -v "no value" # silence logs
if [[ $RELEASE_VERSION != *"preview"* ]]; then
Expand All @@ -99,9 +91,6 @@ git commit -a -m "Preparing Spark release $RELEASE_TAG"
echo "Creating tag $RELEASE_TAG at the head of $GIT_BRANCH"
git tag $RELEASE_TAG

# Restore test jars for dev.
git revert --no-edit $JAR_RM_REF

# Create next version
$MVN versions:set -DnewVersion=$NEXT_VERSION | grep -v "no value" # silence logs
# Remove -SNAPSHOT before setting the R version as R expects version strings to only have numbers
Expand Down
28 changes: 0 additions & 28 deletions dev/is-changed.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,34 +66,6 @@ def main():
os.environ["GITHUB_SHA"], target_ref=os.environ["GITHUB_PREV_SHA"]
)

if any(f.endswith(".jar") for f in changed_files):
with open(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "test-jars.txt")
) as jarlist:
itrsect = set((line.strip() for line in jarlist.readlines())).intersection(
set(changed_files)
)
if len(itrsect) > 0:
raise SystemExit(
f"Cannot include jars in source codes ({', '.join(itrsect)}). "
"If they have to be added temporarily, "
"please add the file name into dev/test-jars.txt."
)

if any(f.endswith(".class") for f in changed_files):
with open(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "test-classes.txt")
) as clslist:
itrsect = set((line.strip() for line in clslist.readlines())).intersection(
set(changed_files)
)
if len(itrsect) > 0:
raise SystemExit(
f"Cannot include class files in source codes ({', '.join(itrsect)}). "
"If they have to be added temporarily, "
"please add the file name into dev/test-classes.txt."
)

changed_modules = determine_modules_to_test(
determine_modules_for_files(changed_files), deduplicated=False
)
Expand Down
Empty file removed dev/test-classes.txt
Empty file.
Empty file removed dev/test-jars.txt
Empty file.