Commit Graph

21 Commits (e3d9454f8ade71a879bb9dd5fa925f1eaf2c6bd6)

Author SHA1 Message Date
Marco Neumann f1e9ac9ef2 ci: run shellcheck 2021-11-29 15:11:15 +01:00
Marko Mikulicic 4b271fe162
feat: Add a simple script to decode the IOx metadata of a parquet file 2021-11-26 12:25:19 +01:00
Marko Mikulicic ae8947868a
fix(logfmts): Update doc 2021-10-20 17:58:22 +02:00
Marko Mikulicic ae82236bc4
fix(logfmts): Use UTC for ./scripts/logfmts 2021-10-20 14:35:47 +02:00
Jacob Marble 083fd06d0c
fix: checksum rustup in CI (#2501)
* fix: checksum rustup in CI

* chore: integrate feedback

Co-authored-by: Andrew Lamb <alamb@influxdata.com>

Co-authored-by: Andrew Lamb <alamb@influxdata.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-09-10 16:28:09 +00:00
Marco Neumann 803d49648a feat: valgrind support 2021-08-23 09:30:36 +02:00
Carol (Nichols || Goulding) 033035d10a docs: Update a few more instances of un-prefixed data_generator 2021-08-19 15:23:31 -04:00
Marko Mikulicic 076b8f74fb
feat: Add small genlp.py script 2021-07-13 14:04:35 +02:00
Raphael Taylor-Davies 530b5cdf22
feat: namespace issues in git-log-prs (#1849)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 13:35:34 +00:00
Marko Mikulicic b77f054a5f
fix: Report error to stderr in git-log-prs 2021-06-21 18:18:50 +02:00
Marko Mikulicic 12b561f140
feat: Add logfmts script to humanize timestamps
```console
$ kubectl logs deploy/iox-router-1000 -c iox -f | TZ=UTC ./scripts/logfmts
2021-06-04 10:25:46 level=debug msg="Successfully processed request" response="Response { status: 204, version: HTTP/1.1, headers: {\"x-powered-by\": \"Routerify v2.0.0-beta-2\"}, body: Body(Empty) }" target="influxdb_iox::influxdb_ioxd::http" location="src/influxdb_ioxd/http.rs:359"
```
2021-06-04 14:16:43 +02:00
Marko Mikulicic dce0dce122
feat: Improve git-log-pr
1. by default use the repo where the `git-log-pr` script is located in, allowing it to be called
   from other scripts in other repos (e.g. k8s-idpe) without too much cerimony
2. allow the git repo to be overriden with the `-C` flag (like the `git` command itself)
3. add a `--commits` flag which prints also commit shas in addition to PR numbers
4. GH merge commits contain the PR title as the body; if present use that instead of using the `gh` cli (which is slow and requires this tool to be installed).
2021-04-29 12:51:49 +02:00
Marko Mikulicic bde36bfe47 feat: Add the git-log-prs script
__Scenarios__

You may know the git sha of what's running in the staging cluster,
and you may know the sha of the latest built image is, but will upgrading to a new
version include the PRs I'm interested in?

Or alternatively: I noticed in the dashboard that IOx was working fine until
we rolled out a new version. Which PRs were included in this new rollout?

__Description__

Getting the answers to the scenarios above is surprisingly hard, because scanning
our git history is complicated by the fact that just about anybody uses a different
merging technique.

This script does the right magic to skim through all that cruft and get the answers.

__Demo__

```console
$ ./scripts/git-log-prs 8376983b74311df970339e106c62ce4038b20e5f..
1330
1336
$ ./scripts/git-log-prs 8376983b74311df970339e106c62ce4038b20e5f.. --titles
1330 feat: Make background task period configurable
1336 feat: Build a perf_image image for every commit in main
```
2021-04-28 21:01:13 +00:00
Marko Mikulicic 2aca0ea592 feat: add jq_edit_db_rules script
Emit also default values for fields in edit_db_rules, this way it's easier to know what to change.

Also simplify argument handling for edit_db_rules script
2021-04-19 10:51:09 +00:00
Marko Mikulicic 664d7103ca fix: Fix edit_db_rules script
- enable quitting on error by fixing `read` (read with heredoc always exits with non-0 causing the script to bail out)
- enable quitting on unbound variables by pulling cleanup outside of main
- accept hosts with `http://` prefix or without (improve compat with iox client)

Now the script cleanly reports errors when you have a typo in the db name or hostname
2021-04-16 13:49:49 +00:00
Marko Mikulicic 89409ca8b7 fix: Update scripts/edit_db_rules
Co-authored-by: Andrew Lamb <alamb@influxdata.com>
2021-04-09 11:12:22 +00:00
Marko Mikulicic f3d40bbff9 feat: Add edit_db_rules script
There are a few yaks to be shaven before we have a good CLI for editing database rules.

This is a simple shell script that uses the grpc API to edit the database rules on a remote
IOx server. It fetches the rules, spawns your default text editor, waits until your editor quits,
and then calls the update API with the results of your local edit.

(if you use emacs, there is a thing called emacsclient which knows how to block until you closed
the buffer in your main persistent emacs)
2021-04-09 11:12:22 +00:00
Marko Mikulicic cd94544e93 feat: Add prototxt script 2021-03-26 12:40:56 +00:00
Andrew Lamb 2b72890028 fix: Revert "fix: Shutdown stest fixture on test harness exit"
This reverts commit 28fe808d7e.

Not needed after https://github.com/influxdata/influxdb_iox/pull/955 is merged
2021-03-10 09:28:03 -05:00
Marko Mikulicic 28fe808d7e fix: Shutdown stest fixture on test harness exit 2021-03-10 11:31:26 +00:00
Marko Mikulicic 9bdc276d5e docs: Document how to use grpcurl to play with API 2021-03-08 13:57:11 +00:00