Commit Graph

85 Commits (0ae8bebd755cf4aa579b9c38e6ea4792dfdbe53a)

Author SHA1 Message Date
Gershon Shif 633b588b1b
chore(litmus): start influxd on local machine (#17347) 2020-03-18 16:48:54 -07:00
Gershon Shif 4928259411
chore: added INFLUXPATH parameter required by backup and restore tests (#17306) 2020-03-16 20:12:38 -07:00
Gershon Shif fb300a1182
chore(litmus): run integration tests on master: (#17292)
* chore(litmus): run integration tests on master:
- aafter successful E2E run after master build, run integration tests
	modified:   .circleci/config.yml
	modified:   etc/litmus_fail_notify.sh
	modified:   etc/litmus_success_notify.sh

* chore(litmus): litmus_integration run should depend on litmus_daily test run
	modified:   .circleci/config.yml
2020-03-16 13:41:13 -07:00
karel-rehor b2a0839a14
chore: update circleci nightly-sel image chrome version (#17058)
* chore: update circleci nightly-sel image chrome version

* chore: update node image to node:lts-stretch-browsers
2020-03-04 09:51:39 +01:00
Alex Boatwright 31cfbde380
feat: upgrading lsp to 0.3.0 (#17043) 2020-03-02 09:38:30 -08:00
Chris Goller 4f2076acf6
build: run e2e tests hourly (#16228)
Signed-off-by: Chris Goller <goller@gmail.com>
2020-02-26 15:03:43 -06:00
Alex Boatwright 6611aae63f
fix: enabling prettier (#16593) 2020-01-17 13:41:15 -08:00
Russ Savage 3a84d5011f
chore(README): updates for beta (#16364)
* feat(docs): updates for beta

* fix(readme): addressing pr feedback

* chore(readme): addressing feedback from paul
2020-01-08 10:35:58 -08:00
j. Emrys Landivar (docmerlin) 026cff4bf9 chore: update to go 1.13 2020-01-07 16:42:06 -06:00
Chris Goller 4755e50af8
ci: run go race tests in parallel over 8 containers (#16288)
* ci: run go race tests in parallel over 8 containers

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: add timing hint for splitting go tests

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: remove spurious grep

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: mod=readonly should ignore unknown internal/promqltests path

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: echo the packages tested

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: remove readonly experiment

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: filter promql internal tests

The promql internal tests has a special go.mod that shows
up in go list.  That directory cannot be tested.

Signed-off-by: Chris Goller <goller@gmail.com>
2019-12-18 23:47:26 -06:00
Chris Goller a942924cbb
ci: split go and js linting into separate circleci jobs (#16282)
* build: split go linting from tests

Signed-off-by: Chris Goller <goller@gmail.com>

* build: split js linting from tests

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: run go tests without verbose option

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: parallelize eslint with 8 containers

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: cache node modules for eslint

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: lint circle yaml

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: cd into ui directory for node caching

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: note eslint parallelization

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: update yarn cache directory to global

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: cache jstest yarn downloads

Signed-off-by: Chris Goller <goller@gmail.com>

* ci: note parallelization of jest tests

Signed-off-by: Chris Goller <goller@gmail.com>
2019-12-18 16:57:08 -06:00
Chris Goller fe0aea0542
build: add circleci target to restrict max jest workers
Signed-off-by: Chris Goller <goller@gmail.com>
2019-12-18 13:18:03 -06:00
Chris Goller e4a6180309
build: split the jest test to run in parallel
Signed-off-by: Chris Goller <goller@gmail.com>
2019-12-18 12:03:52 -06:00
Yiqun Zhang 1c327904c9 fix: run gotest with libflux tag and cgo ldflags 2019-12-16 10:13:40 -05:00
Yiqun Zhang 4ea8d01a23 fix: test baseline to use rust parser! 2019-12-13 11:51:49 -05:00
Yiqun Zhang 549e3c9eb3 build: using libflux in OSS 2019-12-13 10:43:15 -05:00
karel-rehor 7f964b833d
test: add selenium acceptance tests to nightly build - Bonitoo/selenium nightly (#15795)
* add selenium acceptance tests to circleci

* remove selenium workflow

* rename artefacts to artifacts

* rename artefacts to artifacts in pipeline too

* remove sleep and add endpoint check
2019-11-12 13:55:17 +01:00
Julius Volz e4558257e3 test(query): add PromQL end-to-end tests in go submodule
Signed-off-by: Lorenzo Affetti <lorenzo.affetti@gmail.com>
Signed-off-by: Julius Volz <julius.volz@gmail.com>

move to internal

update flux to v0.50

Revert "move to internal"

This reverts commit bcd4caffbd44135f1dbeac4163cb2a22a751f45a.

promtests/internal --> internal/promtests
2019-10-28 18:59:50 +01:00
docmerlin (j. Emrys Landivar) 19fe098888 chore(ci): update go-tools 2019-08-22 10:55:05 -05:00
Russ Savage 4172dfd09e
fix(circleci): add protoc to release build (#14658) 2019-08-14 12:24:27 -07:00
Andrew Watkins 7d9ec64eec
build(client): generate client on each build (#14591)
* chore: add new types for NotiicationRules

* build(client): remove client and build each build

* chore: update gitignore to exclude generated client

* fix: allow client dir to be empty

* docs: add README to client dir

* fix(build): add autogen client to eslintignore

* build: gen client for ci js tests
2019-08-07 13:42:35 -07:00
Chris Goller d3821e12dd
ci(nightly): install protoc (#14486) 2019-07-26 16:21:14 -05:00
Russ Savage b28fb15598
add bzr to release build (#14474) 2019-07-25 16:46:15 -07:00
Christopher Wolff 42db95f359 test(circleci): install bzr before building and running e2e tests 2019-07-24 14:49:57 -07:00
Christopher Wolff 035739b5b7 test(circleci): install bzr before running go tests 2019-07-24 14:33:34 -07:00
Chris Goller 510f7bb057 fix(task): lookup fully hydrated task after creation (#13709)
* fix(task): lookup fully hydrated task after creation

* ci(circle): save go race and litmus test results artifact
2019-05-01 14:54:27 -06:00
Mark Rushakoff 3507027dc0 ci: use go1.12 on CircleCI
And update go.sum from a go1.12 mod tidy.
2019-04-12 13:38:48 -07:00
Brandon Farmer 91dbf02c7f Remove npm caching, ensure fresh dependencies are installed 2019-04-09 12:57:37 -07:00
Kelvin Wang 1cf600aca9 remove proto 2019-04-03 15:42:25 -04:00
Mark Rushakoff 6cb90686ff ci: fail build if binary files committed
Binary files can be whitelisted with the special line 'Adds-Binary:
<path/to/binary/file>' included in the commit message body. Deliberately
checked-in binary files should be very rare.

With minimal effort, this could probably be repurposed as a local
postcommit hook.
2019-03-15 09:17:07 -07:00
Gershon Shif d0694f28b3
ci(litmus): do not run litmus tests on forked PRs (#12063)
* ci(litmus): do not run litmus tests on forked PRs

- add a step to check if PR is from fork. If it is, then stop execution of the step and successfully return.
- Fix for https://github.com/influxdata/influxdb/issues/11965
2019-02-21 12:28:38 -08:00
Michael Desa 6a8a1fce32 feat(kv): implemented key/value store with end-to-end integration tests
* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* refactor(passwords): rename from BasicAuth to Passwords

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* fix(http): s/platform/influxdb/ for user service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement labels generically on kv

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* fix(http): s/platform/influxdb/ for user service

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* feat(kv): implement labels generically on kv

* refactor(passwords): rename from BasicAuth to Passwords

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(http): initial support for flushing all key/values from kv store

* feat(kv): rename macro to variable

* feat(cmd/influxd/launcher): user kv services where appropriate

* refactor(passwords): rename from BasicAuth to Passwords

* feat(kv): implement macro service

* test(ui): introduce cypress

* test(ui): introduce first typescript test

* test(ui/e2e): add ci job

* chore: update gitignore to ignore test outputs

* feat(inmem): in memory influxdb

* test(e2e): adding pinger that checks if influxdb is alive

* hackathon

* hack

* hack

* hack

* hack

* Revert "feat(inmem): in memory influxdb"

This reverts commit 30ddf032003e704643b07ce80df61c3299ea7295.

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* chore: lint ignore node_modules

* hack

* hack

* hack

* add user and flush

* hack

* remove unused vars

* hack

* hack

* ci(circle): prefix e2e artifacts

* change test to testid

* update cypress

* moar testid

* fix npm warnings

* remove absolte path

* chore(ci): remove /home/circleci proto mkdir hack

* wip: crud resources e2e

* fix(inmem): use inmem kv store services

* test(dashboard): add first dashboard crud tests

* hack

* undo hack

* fix: use response from setup for orgID

* chore: wip

* add convenience getByTitle function

* test(e2e): ui can create orgs

* test(e2e): add test for org deletion and update

* test(e2e): introduce task creation test

* test(e2e): create and update of buckets on org view

* chore: move types to declaration file

* chore: use route fixture in dashboard tests

* chore(ci): hack back

* test(ui): update snapshots

* chore: package-lock

* chore: remove macros

* fix: launcher rebase issues

* fix: compile errors

* fix: compile errors

* feat(cmd/influxdb): add explicit testing, asset-path, and store flags

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* fix(cmd/influxd): set default HTTP handler and flags

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* build(Makefile): add run-e2e and PHONY

* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* refactor(passwords): rename from BasicAuth to Passwords

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* fix(http): s/platform/influxdb/ for user service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement labels generically on kv

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(kv): rename macro to variable

* refactor(kv): auth/bucket/org/user unique checks return errors now

* feat(inmem): add way to get all bucket names from store

* feat(inmem): Buckets to return slice of bytes rather than strings

* feat(inmem): add locks around Buckets to avoid races

* feat(cmd/influx): check for unauthorized error in wrapCheckSetup

* chore(e2e): add video and screenshot artifcats to gitignore

* docs(ci): add build instructions for e2e tests

* feat(kv): add id lookup for authorized resources
2019-02-19 17:47:19 -06:00
Gershon Shif 0147470353
fix nightly (#11790)
- add persist_to_worspace to deploy build job
2019-02-09 22:57:42 -08:00
Gershon Shif ac6545e9ac
use attach_workspace for litmus nightly builds (#11785) 2019-02-08 16:55:45 -08:00
Gershon Shif aa66aebaaa
enable Litmus Smoke tests on daily PRs (#11747)
* enable Litmus Smoke tests on daily PRs

- created a litmus_daily job
- added persist_to_workspace to build job to have access to influxd binary
- added litmus_daily to build workflow
- added two script files, litmus_success_notify.sh and litmus_fail_notify.sh to `etc` directory
- added the above script files to the one to be shared in the workspace
- updated litmus_daily and litmus_nightly jobs to use scripts for notifications.
2019-02-07 17:21:56 -08:00
Gershon Shif f3cd889d1e
Add slack notifications to litmus nightly runs (#11648)
- Add a conditional slack notifications to litmus nightly job.
2019-01-31 15:13:34 -08:00
Gershon Shif c72363c7ec
Add litmus test runs to nightly build (#11620) 2019-01-25 12:18:56 -08:00
Luke Morris 954bc8df78 ci: build and release for pushed github tags
Co-authored-by: Mark Rushakoff <mark@influxdb.com>
Co-authored-by: Chris Goller <goller@gmail.com>
2019-01-23 13:24:28 -08:00
Chris Goller a0121c8819 ci(goreleaser): create a release version of goreleaser
Co-authored-by: Luke Morris <lukevmorris@gmail.com>
Co-authored-by: Mark Rushakoff <mark@influxdata.com>
2019-01-23 14:19:05 -06:00
Chris Goller b9cfc72d25 ci(circle): decrease the number of parallel race tests
Trying to not get race tests killed by circle by decreasing the number of parallel tests run.
2019-01-22 22:18:14 -06:00
AJ Bond 08ae5647bf chore(ci): Restore nightly schedule 2019-01-16 14:26:08 -05:00
AJ Bond cd11b348ed fix(ui): Fix UI generation issues
This issue allows for the ui to be generated during the build proccess
2019-01-15 20:45:38 -05:00
AJ Bond f7b6bfacf7 chore(ci): Fix nightly build bug
The project is currently using goreleaser to manage building nightly binaries, docker images and uploads to s3.
The tool has a strict dependency on semantic versioned tags. InfluxDB history does not have a valid semantic tag causing the tool to fail. This commit creates a valid tag for the current time to allow nightly builds to continue.
2019-01-14 17:30:27 -05:00
Mark Rushakoff d73d73c0d4 chore: rename imports from platform to influxdb
I did this with a dumb editor macro, so some comments changed too.

Also rename root package from platform to influxdb.

In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.

Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
AJ Bond e699a209e6 chore(ci): Update schedule back to single nightly build 2018-12-21 17:01:09 -05:00
AJ Bond 89b5ad0c86 chore(ci): Update trigger schedule 2018-12-21 16:55:37 -05:00
ABond 0f8f169558
Merge pull request #2074 from influxdata/chore/true-nightlies
chore(CircleCI): turn off deploy on commits to master
2018-12-20 13:11:23 -05:00
AJ Bond da67b392da chore(ci): Update make to build for each PR 2018-12-20 12:13:41 -05:00
Nathaniel Cook bd2105c923 chore(CircleCI): turn off deploy on commits to master 2018-12-20 09:34:26 -07:00
Mark Rushakoff c2d88d4e70 ci: ensure go.sum matches original file from checkout
In go1.11, go mod vendor can modify go.sum when go.mod contains replace
directives. This behavior has been fixed in go1.12, so just work around
it for now.

Fixes #2056.
2018-12-20 10:04:55 -05:00