Go to file
Mark Rushakoff a7e6a6634e test(task): deflake TaskService shared test
What happened here is kind of a long story.

The TaskService tests exercise different parts of the TaskService
concurrently, in hopes of exercising code that may be racy. This worked
fine so long as we were able to use arbitrary user and organization IDs
picked during test.

Then we added tests for the http-client-backed TaskService. The instance
of http.TaskService takes a single token, so the TaskService tests were
updated to use an optional override to get the user and org ID from the
TaskService implementation.

That meant our parallel tests were using one user and org ID in some
cases. One particular test to exercise concurrency would create tasks
and then retrieve them and delete one. Because this test was filtering
by user and org, sometimes it would delete a task created in a different
test.

The fix was to maintain a whitelist of tasks created in that particular
test, so that it wouldn't delete tasks created in a different test.
2018-10-30 18:52:21 -07:00
.circleci chore(ui): update misc build files related to moving chronograf/ui to ui 2018-10-29 14:00:45 -04:00
.github Update PR template to include checkbox for Swagger docs 2018-04-18 12:15:21 -07:00
bolt add http for telegraf 2018-10-30 14:00:10 -04:00
chronograf chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
cmd feat(task): include task scheduler metrics on /metrics endpoint 2018-10-30 18:52:02 -07:00
context refactor(token): remove context token 2018-10-19 12:39:54 -04:00
docker ci(influxd): add influxd to goreleaser 2018-08-31 12:58:21 -05:00
etc feat: checktidy will check the go.mod and go.sum files in circleci 2018-10-10 15:35:02 -05:00
flux Flux/connections page (#4026) 2018-07-27 10:05:02 -07:00
gather refactor(cmd/influxd): use kit and close all services 2018-10-30 01:57:48 -05:00
http fix(http): unswallow json decoder error (#1248) 2018-10-30 17:31:32 -07:00
inmem add http for telegraf 2018-10-30 14:00:10 -04:00
internal refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
kit kit/cli: Add support for []string 2018-10-03 11:24:46 -07:00
logger refactor: move the logger package from influxdb to platform 2018-10-10 15:49:07 -05:00
mock test(write): add batcher tests 2018-10-25 19:13:53 -05:00
models chore: add String method to FieldType 2018-10-26 08:24:18 -07:00
nats refactor(cmd/influxd): use kit and close all services 2018-10-30 01:57:48 -05:00
pkg chore(fmt): fix and simplify go formatting 2018-10-08 17:23:54 -05:00
prometheus feat(platform/id): using uint64 for platform.IDs 2018-10-11 09:54:18 -05:00
query moved to_http and to_kafka to flux and update to latest flux (#1175) 2018-10-24 12:33:43 -04:00
rand fix(rand): rename *_genator.go to *.go 2018-05-16 11:45:13 -04:00
scripts refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
snowflake refactor(id): update name to IDLength 2018-10-11 09:54:19 -05:00
source refactor(http): prefer Addr over URL in field names 2018-10-04 13:59:58 -07:00
storage chore(fmt): update formating with make fmt 2018-10-30 07:40:28 -05:00
task test(task): deflake TaskService shared test 2018-10-30 18:52:21 -07:00
telegraf/plugins add toml for telegraf 2018-10-25 21:31:44 -04:00
testing feat(http): validate dashboard cell updates (#1199) 2018-10-25 16:05:12 -07:00
toml refactor(toml): copy the toml utility package from influxdb to platform 2018-10-11 12:08:43 -05:00
tools/tmpl refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
tsdb chore(fmt): update formating with make fmt 2018-10-30 07:40:28 -05:00
ui Onboarding wizard polish 2018-10-29 12:05:18 -07:00
write refactor(write): reuse timers 2018-10-25 19:13:53 -05:00
zap fix(zap): porting to uint64 IDs 2018-10-11 09:54:18 -05:00
.gitignore chore(ui): update misc build files related to moving chronograf/ui to ui 2018-10-29 14:00:45 -04:00
.goreleaser.yml remove windows target from goreleaser because a prometheus dependency is causing issues (#985) 2018-10-05 16:23:50 -04:00
Jenkinsfile update Jenkinsfile 2018-09-06 10:41:23 -05:00
LICENSE Move entire codebase into a subdirectory called chronograf 2018-07-19 16:37:21 -04:00
Makefile chore(ui): update misc build files related to moving chronograf/ui to ui 2018-10-29 14:00:45 -04:00
README.md feat: switch to using go modules for building 2018-09-20 08:33:15 -07:00
auth.go add http for telegraf 2018-10-30 14:00:10 -04:00
authz.go add http for telegraf 2018-10-30 14:00:10 -04:00
bucket.go add retention policy 2018-10-18 16:04:21 -04:00
dashboard.go feat(http): validate dashboard cell updates (#1199) 2018-10-25 16:05:12 -07:00
dbrp_mapping.go feat(platform/id): using uint64 for platform.IDs 2018-10-11 09:54:18 -05:00
dbrp_mapping_internal_test.go feat(platform/id): using uint64 for platform.IDs 2018-10-11 09:54:18 -05:00
dbrp_mapping_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
error.go feat(errors): add errors lib 2018-09-07 21:45:47 -05:00
errors.go feat: add onboarding defaults 2018-09-27 15:02:17 -04:00
errors.md feat(errors): add errors lib 2018-09-07 21:45:47 -05:00
errors_test.go fix(platform_test): refactor platform tests to support uint64 platform.IDs 2018-10-11 09:54:18 -05:00
go.mod Update to latest Flux (#1245) 2018-10-30 17:54:54 -07:00
go.sum Update to latest Flux (#1245) 2018-10-30 17:54:54 -07:00
id.go perf(id): decrease allocations for id decoding 2018-10-11 09:54:19 -05:00
id_test.go perf(id): decrease allocations for id decoding 2018-10-11 09:54:19 -05:00
macro.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
macro_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
measurement.go Initial Retention Service 2018-10-10 15:39:27 +01:00
onboarding.go add retention policy 2018-10-18 16:04:21 -04:00
organization.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
query.go feat(platform): add uniform query endpoint for sources 2018-08-28 15:53:20 -04:00
scraper.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
session.go add http for telegraf 2018-10-30 14:00:10 -04:00
source.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
status.go docs(http): authorization status is now active or inactive 2018-08-29 13:07:39 -05:00
task.go feat(task): add ability to retry runs 2018-10-30 09:20:40 -07:00
telegraf.go add http for telegraf 2018-10-30 14:00:10 -04:00
telegraf_test.go add http for telegraf 2018-10-30 14:00:10 -04:00
token.go fix(platform): rename *_generator.go to *.go 2018-05-16 11:45:13 -04:00
tools.go refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
usage.go feat(usage): add values and series metrics to usage service 2018-10-22 17:47:04 -05:00
user.go fix(user): update comment about user service 2018-10-11 09:54:19 -05:00
user_resource_mapping.go fix(http): add links to user resource response 2018-10-25 14:42:26 -07:00
user_resource_mapping_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
view.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
view_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
write.go feat(http): add http write client 2018-10-25 19:11:12 -05:00

README.md

InfluxData Platform CircleCI

This is the monorepo for InfluxData Platform, a.k.a. Influx 2.0 OSS.

Installation

This project requires Go 1.11 and Go module support. Set GO111MODULE=on or build the project outside of your GOPATH for it to succeed.

For information about modules, please refer to the wiki.

Introducing Flux

We recently announced Flux, the MIT-licensed data scripting language (and rename for IFQL). The source for Flux is in this repository under query. Learn more about Flux from CTO Paul Dix's presentation.