Go to file
Leonardo Di Donato b8153e83d1 feat(http): test an authorization for non-existing user cannot be created 2018-12-21 19:23:12 +01:00
.circleci Merge pull request #2074 from influxdata/chore/true-nightlies 2018-12-20 13:11:23 -05:00
.github
bolt feat(bolt): session refactoring for platform errors 2018-12-21 09:56:23 +01:00
chronograf build(Makefile): fix various bug with makefiles 2018-12-19 17:02:19 -07:00
cmd Merge pull request #1886 from influxdata/bj-refactor-test-cancellation 2018-12-14 10:43:15 -07:00
context
docker
etc chore(Makefile): add target to check generated files are accurate 2018-12-18 12:54:17 -07:00
flux
gather
http feat(http): test an authorization for non-existing user cannot be created 2018-12-21 19:23:12 +01:00
inmem Merge pull request #2085 from influxdata/label-properties 2018-12-20 14:16:51 -08:00
internal chore(Makefile): remove yq dependency to generate ts client 2018-12-18 11:19:56 -07:00
kit feat(api/health): Add a standardized health and ready check system (#1961) 2018-12-14 23:20:53 -07:00
kv feat(platform): add generic kv store 2018-12-18 16:08:48 -05:00
logger
mock Merge pull request #1993 from zhulongcheng/fix-user-service 2018-12-21 09:37:42 -05:00
models feat(models): only use common SI time units for timestamp precision 2018-12-20 22:39:24 -06:00
nats
pkg
prometheus
query fix(query): make databases() function embed plan.DefaultCost (#2079) 2018-12-20 12:34:29 -08:00
rand
scripts
snowflake
source
storage build(Makefile): fix various bug with makefiles 2018-12-19 17:02:19 -07:00
task Merge pull request #1562 from bednar/task_service 2018-12-21 08:48:01 -06:00
telegraf/plugins fix(platform): fix the pointer alloc for telegraf config 2018-12-20 12:45:45 -05:00
testing feat(testing): session tests consider platform errors now 2018-12-21 09:56:23 +01:00
toml
tools/tmpl
tsdb tsm1: speed up deleterange for large keys 2018-12-14 10:06:24 -07:00
ui Merge pull request #2092 from influxdata/import-table-graph-changes 2018-12-20 18:24:57 -08:00
uuid
vault
write
zap
.gitignore
.goreleaser.yml chore(ci): Run make generate 2018-12-20 17:17:32 -05:00
Jenkinsfile
LICENSE
Makefile Merge pull request #2091 from influxdata/chore/generation-add-typescript-task 2018-12-20 15:09:35 -08:00
README.md Merge pull request #1393 from influxdata/chore/add-bazaar-to-readme 2018-12-15 10:50:08 -06:00
auth.go
authz.go
bucket.go
dashboard.go fix(http): convert dashboard errors 2018-12-13 14:36:46 -05:00
dbrp_mapping.go
dbrp_mapping_internal_test.go
dbrp_mapping_test.go
error.go
errors.go fix(platform): rename "msg" field to "message" for Error json 2018-12-19 13:13:15 -05:00
errors.md
errors_test.go fix(platform): use json struct instead of string for embed error 2018-12-17 11:18:04 -05:00
example_test.go
go.mod build(Makefile): fix various bug with makefiles 2018-12-19 17:02:19 -07:00
go.sum chore(Makefile): fix broken nightly builds after Makefile updates 2018-12-19 13:52:33 -07:00
id.go
id_test.go
keyvalue_log.go
label.go fix go vet 2018-12-20 13:52:35 -08:00
label_test.go remove colors from labels 2018-12-20 12:18:03 -08:00
macro.go fix(http): convert macro errors 2018-12-13 23:11:52 +08:00
macro_test.go
measurement.go
onboarding.go
operation_log.go
organization.go
paging.go
query.go
scraper.go fix(http): convert scraper target error 2018-12-17 09:08:19 -05:00
secret.go
session.go feat(session): error constants and variables 2018-12-21 09:56:23 +01:00
source.go
status.go
task.go
telegraf.go fix(platform): fix the pointer alloc for telegraf config 2018-12-20 12:45:45 -05:00
telegraf_test.go fix(platform): fix the pointer alloc for telegraf config 2018-12-20 12:45:45 -05:00
token.go
tools.go build(Makefile): fix various bug with makefiles 2018-12-19 17:02:19 -07:00
usage.go
user.go feat(platform): add generic kv store 2018-12-18 16:08:48 -05:00
user_resource_mapping.go
user_resource_mapping_test.go
view.go fix(http): view errors endpoint conversion 2018-12-19 16:54:48 -05:00
view_test.go
write.go

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.

If you are getting an error loading module requirements error with bzr executable file not found in $PATH” on make, brew install bazaar (on macOSX) before continuing.

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.

CI and Static Analysis

CI

All pull requests will run through CI, which is currently hosted by Circle. Community contributors should be able to see the outcome of this process by looking at the checks on their PR. Please fix any issues to ensure a prompt review from members of the team.

The Platform project is used internally in a number of proprietary InfluxData products, and as such, PRs and changes need to be tested internally. This can take some time, and is not really visible to community contributors.

Static Analysis

This project uses the following static analysis tools. Failure during the running of any of these tools results in a failed build. Generally, code must be adjusted to satisfy these tools, though there are exceptions.

  • go vet checks for Go code that should be considered incorrect.
  • go fmt checks that Go code is correctly formatted.
  • go mod tidy ensures that the source code and go.mod agree.
  • staticcheck checks for things like: unused code, code that can be simplified, code that is incorrect and code that will have performance issues.

staticcheck

If your PR fails staticcheck it is easy to dig into why it failed, and also to fix the problem. First, take a look at the error message in Circle under the staticcheck build section, e.g.,

tsdb/tsm1/encoding.gen.go:1445:24: func BooleanValues.assertOrdered is unused (U1000)
tsdb/tsm1/encoding.go:172:7: receiver name should not be an underscore, omit the name if it is unused (ST1006)

Next, go and take a look here for some clarification on the error code that you have received, e.g., U1000. The docs will tell you what's wrong, and often what you need to do to fix the issue.

Generated Code

Sometimes generated code will contain unused code or occasionally that will fail a different check. staticcheck allows for entire files to be ignored, though it's not ideal. A linter directive, in the form of a comment, must be placed within the generated file. This is problematic because it will be erased if the file is re-generated. Until a better solution comes about, below is the list of generated files that need an ignores comment. If you re-generate a file and find that staticcheck has failed, please see this list below for what you need to put back:

File Comment
query/promql/promql.go //lint:file-ignore SA6001 Ignore all unused code, it's generated