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

Apply -snapshot suffix during build task #7317

Merged
merged 1 commit into from
Jun 14, 2016
Merged

Conversation

epixa
Copy link
Contributor

@epixa epixa commented May 27, 2016

The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The --release flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing skip-os-packages.

If you do not want to create any zip or tar.gz archives, you can pass
--skip-archives.

Closes #6941

```

#### Debugging unit tests

The standard `npm run test` task runs several sub tasks and can take several minutes to complete, making debugging failures pretty painful. In order to ease the pain specialized tasks provide alternate methods for running the tests.


`npm run test:quick`
`npm run test:quick`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no clue why all of these lines had spaces after them, but my editor removed them on save.

The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.

If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.
@jbudz
Copy link
Member

jbudz commented Jun 13, 2016

This isn't a huge issue, but using more than one option doesn't seem to be working:
npm run build -- --release --skip-archives

@jbudz
Copy link
Member

jbudz commented Jun 13, 2016

^ Looks like it's fixed in grunt 1.0

@jbudz
Copy link
Member

jbudz commented Jun 13, 2016

LGTM

@epixa
Copy link
Contributor Author

epixa commented Jun 13, 2016

Yeah, it's really annoying. You need to set all but the last flag explicitly if you're doing more than one:

npm run build -- --release=true --skip-archives

@epixa epixa added the v4.6.0 label Jun 14, 2016
@epixa epixa merged commit dbfee59 into elastic:master Jun 14, 2016
@epixa epixa deleted the newbuild branch June 14, 2016 20:25
@epixa epixa added the v4.5.2 label Jun 14, 2016
elastic-jasper added a commit that referenced this pull request Jun 15, 2016
---------

**Commit 1:**
Apply -snapshot suffix during build task

The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.

If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.

* Original sha: 834f563
* Authored by Court Ewing <[email protected]> on 2016-05-27T20:40:57Z
@epixa epixa added v5.0.0 and removed v5.0.0 labels Jun 28, 2016
epixa added a commit that referenced this pull request Jul 22, 2016
---------

**Commit 1:**
Apply -snapshot suffix during build task

The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.

If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.

* Original sha: 834f563
* Authored by Court Ewing <[email protected]> on 2016-05-27T20:40:57Z
epixa added a commit that referenced this pull request Jul 22, 2016
[backport] PR #7317 to 4.x - Apply -snapshot suffix during build task
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Apply -snapshot suffix during build task

Former-commit-id: dbfee59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The -snapshot suffix should be added by the build system rather than hardcoded in commits
2 participants