Skip to content

Commit

Permalink
Merge branch 'master' into 2.0-check-wal-seg-size
Browse files Browse the repository at this point in the history
  • Loading branch information
foobar authored Feb 8, 2021
2 parents f5c36b0 + 034280e commit d14466c
Show file tree
Hide file tree
Showing 127 changed files with 3,879 additions and 1,918 deletions.
25 changes: 20 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ jobs:
key: influxdb-build-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/go-cache
- store_artifacts:
path: bin/linux
- persist_to_workspace:
root: .
paths:
Expand Down Expand Up @@ -627,6 +629,15 @@ jobs:
- install_core_deps
- run_goreleaser:
publish_release: false
- run:
name: Clean up artifacts
command: |
# goreleaser generates some temp files in the dist/
# directory alongside the artifacts we want to save.
mkdir artifacts
mv dist/influx* artifacts/
- store_artifacts:
path: artifacts
- save_cache:
name: Save GOCACHE
key: influxdb-cross-build-{{ .Branch }}-{{ .Revision }}
Expand Down Expand Up @@ -773,11 +784,12 @@ jobs:
- attach_workspace:
at: ~/project
- quay_login
- run: docker run --net host -v /var/run/docker.sock:/var/run/docker.sock -e TEST_RESULTS=~/project quay.io/influxdb/grace:latest
- run: mkdir -p ~/project/results
- run: docker run --net host -v /var/run/docker.sock:/var/run/docker.sock -v ~/project/results:/grace/test-results/grace-results -e TEST_RESULTS=~/project/results quay.io/influxdb/grace:latest
- store_artifacts:
path: ~/project
path: ~/project/results
- store_test_results:
path: ~/project
path: ~/project/results

grace_daily:
machine: true
Expand All @@ -788,6 +800,9 @@ jobs:
- run:
command: ./bin/linux/influxd --store=memory --log-level=debug
background: true
- run: docker run --net host -v /var/run/docker.sock:/var/run/docker.sock -v ~/project:/grace/test-results/grace-results quay.io/influxdb/grace:daily
- run: mkdir -p ~/project/results
- run: docker run --net host -v /var/run/docker.sock:/var/run/docker.sock -v ~/project/results:/grace/test-results/grace-results quay.io/influxdb/grace:daily
- store_artifacts:
path: ~/project
path: ~/project/results
- store_test_results:
path: ~/project/results
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ nfpms:
amd64: x86_64
file_name_template: "influxdb2-nightly.{{ .Arch }}"
deb:
file_name_template: "influxdb2_nightly_{{ .Arch }}"
file_name_template: "influxdb2-nightly-{{ .Arch }}"
vendor: InfluxData
homepage: https://influxdata.com
maintainer: support@influxdb.com
Expand All @@ -88,14 +88,14 @@ archives:
builds: ["influx"]
format: tar.gz
wrap_in_directory: true
name_template: "influxdb2_client_nightly_{{ .Os }}_{{ .Arch }}"
name_template: "influxdb2-client-nightly-{{ .Os }}-{{ .Arch }}"
files:
- LICENSE
- README.md
- id: influx_and_influxd
format: tar.gz
wrap_in_directory: true
name_template: "influxdb2_nightly_{{ .Os }}_{{ .Arch }}"
name_template: "influxdb2-nightly-{{ .Os }}-{{ .Arch }}"
files:
- LICENSE
- README.md
Expand All @@ -107,7 +107,7 @@ blobs:
folder: "platform/nightlies/"

checksum:
name_template: "influxdb2_nightly.sha256"
name_template: "influxdb2-nightly.sha256"
algorithm: sha256

dockers:
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@ This release fully removes the `inmem` indexing option, along with the associate

Replacement `tsi1` indexes will be automatically generated on startup for shards that need it.

#### Artifact naming conventions

The names of artifacts produced by our nightly & release builds have been updated according to the
[Google developer guidelines](https://developers.google.com/style/filenames). Underscores (`_`) have
been replaced by hyphens (`-`) in nearly all cases; the one exception is the use of `x86_64` in our
RPM packages, which has been left unchanged.

### Features

1. [19811](https://github.com/influxdata/influxdb/pull/19811): Add Geo graph type to be able to store in Dashboard cells.
1. [20473](https://github.com/influxdata/influxdb/pull/20473): Add `--overwrite-existing-v2` flag to `influxd upgrade` to overwrite existing files at output paths (instead of aborting).
1. [20524](https://github.com/influxdata/influxdb/pull/20524): Add `influxd print-config` command to support automated config inspection.
1. [20561](https://github.com/influxdata/influxdb/pull/20561): Add `nats-port` config option for `influxd` server.
1. [20564](https://github.com/influxdata/influxdb/pull/20564): Add `nats-max-payload-bytes` config option for `influxd` server.
1. [20467](https://github.com/influxdata/influxdb/pull/20467): Add `influxd inspect export-lp` command to extract data in line-protocol format.
1. [20604](https://github.com/influxdata/influxdb/pull/20604): Update telegraf plugins list in UI to include Beat, Intel PowerStats, and Rienmann.

### Bug Fixes

Expand All @@ -56,6 +65,12 @@ Replacement `tsi1` indexes will be automatically generated on startup for shards
1. [20548](https://github.com/influxdata/influxdb/pull/20548): Prevent panic in `influxd upgrade` when V1 users exist and no V1 config is given.
1. [20565](https://github.com/influxdata/influxdb/pull/20565): Set correct Content-Type on v1 query responses.
1. [20565](https://github.com/influxdata/influxdb/pull/20565): Update V1 API spec to document all valid Accept headers and matching Content-Types.
1. [20578](https://github.com/influxdata/influxdb/pull/20578): Respect the --skip-verify flag when running `influx query`.
1. [20495](https://github.com/influxdata/influxdb/pull/20495): Update Flux functions list in UI to reflect that `v1` package was renamed to `schema`.
1. [20669](https://github.com/influxdata/influxdb/pull/20669): Remove blank lines from payloads sent by `influx write`.
1. [20657](https://github.com/influxdata/influxdb/pull/20657): Allow for creating users without initial passwords in `influx user create`.
1. [20679](https://github.com/influxdata/influxdb/pull/20679): Fix incorrect "bucket not found" errors when passing `--bucket-id` to `influx write`.
1. [20702](https://github.com/influxdata/influxdb/pull/20702): Fix loading config when `INFLUXD_CONFIG_PATH` points to a directory with `.` in its name.

## v2.0.3 [2020-12-14]

Expand Down
17 changes: 5 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ Currently the project only depends on `git` and `bzr`.

You need a recent stable version of Rust. We recommend using [rustup](https://rustup.rs/) to install Rust.

You also need `protobuf`, `yarn`, and `make` installed.
You also need `clang`, `make`, `pkg-config`, `protobuf`, and `yarn` installed.

- OSX: `brew install protobuf yarn make`
- Linux (Arch): `pacman -S protobuf yarn make`
- OSX: `brew install make pkg-config protobuf yarn`
- Linux (Arch): `pacman -S clang make pkgconf protobuf yarn`
- Linux (Ubuntu, RHEL): See below

#### Ubuntu-specific instructions:
Expand All @@ -134,7 +134,7 @@ sudo apt remove yarn cmdtest
wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo apt-add-repository "deb https://dl.yarnpkg.com/debian/ stable main"
sudo apt install protobuf-compiler libprotobuf-dev yarn make
sudo apt install make clang pkg-config protobuf-compiler libprotobuf-dev yarn
```

#### Redhat-specific instructions
Expand Down Expand Up @@ -177,14 +177,7 @@ $ ./env go build ./cmd/influxd

Another method is to configure the `pkg-config` utility. Follow the instructions [here](https://github.com/influxdata/flux#getting-started) to install and configure `pkg-config` and then the normal go commands will work.

The first step is to install the `pkg-config` command.

```bash
# On Debian/Ubuntu
$ sudo apt-get install -y clang pkg-config
# On Mac OS X with Homebrew
$ brew install pkg-config
```
You should have already installed the pkg-config commands when doing the regular 'make' build.

Install the `pkg-config` wrapper utility of the same name to a different path that is earlier in the PATH.

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ui_client:
#

fmt: $(SOURCES_NO_VENDOR)
gofmt -w -s $^
./etc/fmt.sh

checkfmt:
./etc/checkfmt.sh
Expand Down
2 changes: 1 addition & 1 deletion chronograf/dist/dist.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"net/http"

"github.com/elazarl/go-bindata-assetfs"
assetfs "github.com/elazarl/go-bindata-assetfs"
)

// DebugAssets serves assets via a specified directory
Expand Down
26 changes: 13 additions & 13 deletions chronograf/enterprise/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestMetaClient_Users(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -195,7 +195,7 @@ func TestMetaClient_Users(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -297,7 +297,7 @@ func TestMetaClient_User(t *testing.T) {
want: &User{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -723,7 +723,7 @@ func TestMetaClient_Roles(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -755,7 +755,7 @@ func TestMetaClient_Roles(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -818,7 +818,7 @@ func TestMetaClient_Role(t *testing.T) {
want: &Role{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -897,12 +897,12 @@ func TestMetaClient_UserRoles(t *testing.T) {
name: nil,
},
want: map[string]Roles{
"marty": Roles{
"marty": {
Roles: []Role{
{
Name: "timetravelers",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand All @@ -911,33 +911,33 @@ func TestMetaClient_UserRoles(t *testing.T) {
{
Name: "mcfly",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Users: []string{"marty", "george"},
},
},
},
"docbrown": Roles{
"docbrown": {
Roles: []Role{
{
Name: "timetravelers",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Users: []string{"marty", "docbrown"},
},
},
},
"george": Roles{
"george": {
Roles: []Role{
{
Name: "mcfly",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down
Loading

0 comments on commit d14466c

Please sign in to comment.