apache / apache/lucene

ant prepare-release-no-sign fails intermittently [LUCENE-7033]

Open
#8,090 2 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Mike reported this on the mailing list. This is fully reproducible, you just need to run it twice:

```Java
cd lucene
# succeeds
ant prepare-release-no-sign
# fails
ant prepare-release-no-sign
```

The problem is with this target that runs conditionally:

```Java









```

I attach a diff from the two runs – you can see the second one skipped this task and then cleaned the output folder, which doesn't make sense.

I don't know how to fix, but I think it's this.

![capture-2.png](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-7033/capture-2.png)

---
Migrated from [LUCENE-7033](https://issues.apache.org/jira/browse/LUCENE-7033) by Dawid Weiss (@dweiss), updated Feb 20 2016
Attachments: [capture-2.png](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-7033/capture-2.png)

Contributor guide

Open the contributing guide

Research direction

Run `ant prepare-release-no-sign` twice from the `lucene` directory and compare the outcomes with the attached diff. Then inspect the `-unpack-lucene-tgz` target, especially its conditional execution and cleanup behavior. Done means repeated runs complete successfully without incorrectly skipping unpacking or removing the output folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.