Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dannykopping/remove cache stats #14

Draft
wants to merge 225 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
7299e3b
Fix query filtering (#5951)
MasslessParticle Apr 20, 2022
ef56b73
Add query filtering to the tailer (#5969)
MichelHollands Apr 21, 2022
c700744
Loki: Make DNS resolver configurable in Gateway (#5973)
irizzant Apr 21, 2022
c0f51b9
redact s3 credential values when printing config to logs (#5961)
afayngelerindbx Apr 21, 2022
ea59e4b
Add changelog entry for split by range of instant queries (#5966)
ssncferreira Apr 21, 2022
38e5e41
Do not parse string of empty matchers (#5980)
chaudum Apr 21, 2022
db23887
Call correct method on index store (#5979)
chaudum Apr 21, 2022
66a4692
fix: remove typo in gateway config (#5981)
irizzant Apr 21, 2022
3376596
Add string representation of boltdb shipper mode (#5982)
simonswine Apr 21, 2022
3fa6cc9
Querier: prevent unnecessary calls to ingesters (#5984)
dannykopping Apr 21, 2022
9cef86b
Invalidate caches on delete (#5661)
MasslessParticle Apr 21, 2022
b6ce382
Use new build image 0.20.3 (#5904)
chaudum Apr 22, 2022
7c462ca
Add buf to the build image (#5785)
simonswine Apr 22, 2022
4a91fdc
migrated gelfTarget to go-gelf/v2 library that contains fix for chunk…
vlad-diachenko Apr 25, 2022
2a04ac9
Remove references to cortex (#6015)
trevorwhitney Apr 25, 2022
bcb8009
operator: logerr v2 update (#5987)
Red-GV Apr 26, 2022
0cc3fe7
Disable calling new index-gateway client's API. (#6025)
kavirajk Apr 26, 2022
986fe5c
Remove empty match within concat of regex (#6026)
cyriltovena Apr 26, 2022
88c4781
Revendor `grafana/tail` to fix promtail symlink behavior (#6034)
DylanGuedes Apr 27, 2022
fc8c4f0
Loki: Add a configurable ability to fudge incoming timestamps for gua…
slim-bean Apr 28, 2022
cd02d6a
Add better observability to queryReadiness (#5946)
DylanGuedes Apr 28, 2022
149227b
Minor fixes in docs/sources/api/_index.md (#5915)
adeverteuil Apr 28, 2022
c4ebfd3
Docs: revise getting started guide (#5939)
KMiller-Grafana Apr 28, 2022
e2cde40
Add query scheduler to "Read Resources" mixin dashboard (#6028)
chaudum Apr 29, 2022
f031427
Docs: PR 5387 redo - Warn ECS users to avoid plain text creds (#6051)
KMiller-Grafana Apr 29, 2022
d0160cb
Upgrade inet.af/netaddr (#6046)
aknuds1 Apr 29, 2022
d73df08
Improve series store index queries (#6045)
cyriltovena Apr 29, 2022
8c03d23
operator: Merge gh index page with README.md to link to docs (#6048)
periklis Apr 29, 2022
477a0e7
Add filter parameter to rebound so lines can be deleted by the compac…
MichelHollands Apr 29, 2022
084a080
docker-compose: Disable auth in Grafana (#5998)
simonswine Apr 29, 2022
6c1a62d
Ensure proto definitions are formatted [2/2] (#6000)
simonswine Apr 29, 2022
0c721b4
Add IndexGateway Query Readiness Duration panel to `Loki - Reads Reso…
JordanRushing Apr 29, 2022
4891e28
Decrease log level for "failed to put to memcached" (#6018)
chaudum Apr 29, 2022
5d51e5a
Improve batching in boltdb index (#6044)
cyriltovena Apr 29, 2022
6b6521f
Add metrics to range mapper (#6030)
ssncferreira Apr 29, 2022
9cb78bd
Improve index entries deduping and concurrency (#6055)
cyriltovena Apr 29, 2022
309592a
ignores reporting cancellations as errors in the usage-reporter modul…
owen-d May 2, 2022
eb242f3
Add tailing metrics (#6059)
MasslessParticle May 2, 2022
a5b9a9a
Docs: Improve wording of getting started guide (#6060)
KMiller-Grafana May 2, 2022
2758dc6
boltdb shipper index list cache improvements (#6054)
sandeepsukhani May 2, 2022
47ce070
Add missing changelog entry for change introduced by PR 6034. (#6040)
DylanGuedes May 2, 2022
162e82e
Use quiet flag in logcli tail.go. (#6033)
DylanGuedes May 2, 2022
8a5877c
Bump github.com/minio/minio-go/v7 from 7.0.10 to 7.0.24 (#6007)
dependabot[bot] May 2, 2022
d7f03be
Update libsystemd-dev from bullseye-backports for arm32 docker images…
abferm May 2, 2022
cce2d8e
Promoto policyRule to v1 (#6003)
zachfi May 2, 2022
093fe91
Bump inet.af/netaddr for Go 1.18 compatibility (#5872)
foutrelis May 2, 2022
241bde1
Add dot to some DNS address to reduce lookups (#5789)
bboreham May 2, 2022
38b1d3b
Update Loki reads/writes resources dashboards (#5765)
ssncferreira May 2, 2022
179d741
promtail: Add support for exclusion patterns in `static_config` (#5943)
tpaschalis May 2, 2022
8cd4694
allow more time for boltdb-shipper index syncs to finish (#6071)
sandeepsukhani May 2, 2022
9c19b0f
Fix broken link on deployment-modes.md (#6068)
wtchangdm May 2, 2022
d9327ec
Added NLog-Targets-Loki as unofficial C# client to Loki (#6061)
corentinaltepe May 2, 2022
00e210a
Bump actions/checkout from 2 to 3 (#5558)
dependabot[bot] May 2, 2022
bb2e952
Fix(query-frontend): `/label/<name>/values` endpoint to use right set…
kavirajk May 2, 2022
98fda9b
Loki: Change live tailing to only allow mutating the log line not the…
slim-bean May 2, 2022
7fff660
Add UDP protocol support to Promtail's syslog target (#5790)
chaudum May 3, 2022
213bb86
Add integration tests which test happy path (#5968)
simonswine May 3, 2022
6392ddb
Auto add labels on new pull request (#6065)
May 3, 2022
8b15632
Fix(query-frontend): LokiCodec encode/decode works correctly with lab…
kavirajk May 3, 2022
93de7a7
renames skip -> ok in ProcessString (#6064)
owen-d May 3, 2022
c76565a
fix labeler (#6087)
May 3, 2022
2264b73
Docs: remove Cortex references (#6079)
KMiller-Grafana May 3, 2022
0a4bfbe
Remove nosiy "inflight" requests log entries (#6074)
kavirajk May 4, 2022
1d25e17
Docs: fix pic location in `sources/fundamentals/architecture/deployme…
n4mine May 4, 2022
b3f6f6b
table_manager: Change some level.Info() logging to level.Debug() (#6076)
patman-cp May 4, 2022
1389857
`metrics.go` support for metadata queries(labels and series) (#5971)
kavirajk May 4, 2022
d97724e
Introduce coverage to PR pipelines (#5357)
MasslessParticle May 4, 2022
0a68bd2
docs: update the labels timespan info (#6019)
gabor May 4, 2022
14b0873
Revert "Docs: fix pic location in `sources/fundamentals/architecture/…
n4mine May 4, 2022
4f75939
Revert "Loki: Change live tailing to only allow mutating the log line…
slim-bean May 4, 2022
03153e8
clean up the pr diff message (#6098)
MasslessParticle May 4, 2022
b45efd4
TSDB shipper + WAL (#6049)
owen-d May 5, 2022
ebb39db
lambda-promtail: Add multi-tenancy support (#6102)
timchenko-a May 5, 2022
18058d2
Serve correct status of ingester/distributor in gRPC healthcheck endp…
chaudum May 5, 2022
e2fdc34
Feat: add Baidu Cloud BOS as storage backends for Loki #4788 (#5848)
arcosx May 5, 2022
45dd588
Update consistent hash ring docs with new index gateway ring (#6041)
JordanRushing May 5, 2022
06e309b
do not increment sync operation count metric on per index set (#6109)
sandeepsukhani May 6, 2022
8838530
Document `/services` API endpoint (#6111)
May 6, 2022
55ea89f
Tsdb/head wal feedback (#6107)
owen-d May 6, 2022
41647d1
operator: Ruler enhancement proposal (#5985)
periklis May 6, 2022
756fc19
fix mutability bug with labels during tsdb flushing (#6116)
owen-d May 6, 2022
729bf3f
loads previously created TSDBs into shipper on startup (#6117)
owen-d May 6, 2022
24f8b19
Remove unused grpc health check endpoints (#6113)
kavirajk May 6, 2022
c2e43dd
Bump k8s.io/api, k8s.io/client-go, k8s.io/apimachinery from 0.22.7 to…
mar4uk May 6, 2022
31ca108
Docs: redo PR 5109 (#6119)
KMiller-Grafana May 6, 2022
ee4ab1b
Fix certain binary expression queries by optimizing through push down…
chaudum May 12, 2022
4bf1648
Loki: When processing logs during tailing, don't reuse the query pipe…
slim-bean May 12, 2022
301ea42
operator: Add method to get authenticated from GCP (#6125)
May 12, 2022
6e3bf3f
tsdb query fixes (#6142)
sandeepsukhani May 12, 2022
dc782de
Removed double space in Log (#6166)
yusufpapurcu May 16, 2022
40b2373
corrected copy&paste error in list of labels (#6146)
psytester May 16, 2022
73b39a9
specify logcli authorization header by flag (#6164)
domcyrus May 16, 2022
f39552c
Add docs for updated deletion api (#5763)
MichelHollands May 16, 2022
aa3f06f
update auth header env variable usage help (#6169)
domcyrus May 16, 2022
97c7d7c
LogQL: add the `default` sprig template function to logql label/line …
jburnham May 16, 2022
c6b7752
Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#6170)
dependabot[bot] May 16, 2022
c6af640
feat: support simple selection of labels in json expr parser (#6151)
adityacs May 16, 2022
0691563
Update SSL config for cassandra (#6145)
digiserg May 17, 2022
6fb86c4
fix(tanka): add customizable common env vars (#6124)
irizzant May 17, 2022
6e9517e
ruler: Add support for alertmanager header authorization (#6136)
periklis May 17, 2022
e3a43c6
query-scheduler: Now proper support for `querier_forget_delay` (#6174)
kavirajk May 17, 2022
e5a89fa
fix(querier): Record `result` length after response validation. (#6176)
kavirajk May 17, 2022
ead8c34
skip empty object key returned by some s3 compatible storage while li…
sandeepsukhani May 17, 2022
6b97de7
tsdb creation supports fingerprint overrides (#6178)
owen-d May 17, 2022
3547d89
Fix typo in operator/docs/hack_operator_make_run.md (#6180)
alanconway May 17, 2022
e9d2a30
Fixed reader to support both authentication and tenant-id at the same…
kovaxur May 18, 2022
b6ff9d5
Add integration test for delete request (#6188)
MichelHollands May 18, 2022
4f87db7
strips out tenant label from LabelNames queries (#6181)
owen-d May 18, 2022
62f5e59
tsdb index gateway (#6158)
sandeepsukhani May 18, 2022
8518560
Fix flaky gRPC server shutdown in tests (#6191)
chaudum May 18, 2022
b073ec9
security: Redact credentials when marshalled to YAML (#6186)
chaudum May 19, 2022
fe7ced8
Fix CHANGELOG entries. (#6193)
DylanGuedes May 19, 2022
e5eff96
Change deletion_enabled setting to deletion_mode (#6190)
MichelHollands May 19, 2022
bb2eccc
[loki microservices]: allow custom gateway server configuration (#6138)
irizzant May 19, 2022
5eb4c0d
operator: Changing GCP secret file path (#6199)
Red-GV May 19, 2022
ef4bc8f
copy all the fixes/improvements that went into boltdb-shipper that ar…
sandeepsukhani May 19, 2022
3c33400
creates a single tsdb for entire wal recovery (#6203)
owen-d May 19, 2022
b90c460
Rename fudge_duplicate_timestamp to be increment_duplicate_timestamp …
KMiller-Grafana May 19, 2022
440fb7d
Loki: Modifies TableManager to use IndexGateway ring (#5972)
DylanGuedes May 20, 2022
a58dc3f
doc(storage-example-configs): AWS single store configs (#6196)
kavirajk May 20, 2022
d5c337c
docs: Fix broken link from unpack parser to pack stage (#6207)
chaudum May 20, 2022
f14f9dd
prevents sharding avg and avg_over_time when their children arent sha…
owen-d May 20, 2022
1923668
run store queries in ingester when using tsdb as index store (#6209)
sandeepsukhani May 20, 2022
5e465ad
Docs: Fix design docs index page (#6008)
joanlopez May 20, 2022
0075085
docs: describe ordering in http query results (#6024)
gabor May 20, 2022
5206e3a
Docs: Hint about potential high cardinality metrics (#5603)
m1keil May 20, 2022
fd627f2
operator: Add rules support (#5986)
periklis May 24, 2022
0dfd2cb
Fix label extraction pushdown on instant queries (#6215)
ssncferreira May 24, 2022
67e7285
Improve labels computation during LogQL pipeline (#6110)
cyriltovena May 24, 2022
e313d8a
Remove __name__ from label calls (#6229)
MasslessParticle May 24, 2022
c032da9
Tsdb/inverted index (#6233)
owen-d May 24, 2022
3d22827
Runtime reloadable config; ring migration setup (#6214)
cstyan May 24, 2022
b6ac00e
[Promtail] drop lines with malformed json (#6099)
cstyan May 24, 2022
67f104a
Add NRC in Adopters (#6242)
ludydoo May 25, 2022
6ac955c
make boltdb-shipper use the generic indexshipper for managing index i…
sandeepsukhani May 25, 2022
65c6e25
Add upgrade guide regarding azure container name change (#6118)
trevorwhitney May 25, 2022
eedfcd5
Fix the signature for substr (#6236)
izrik May 26, 2022
3e77423
Migrate Tool: Update to work with boltdb-shipper, improve logging out…
slim-bean May 26, 2022
0b947d9
Docs: Reimplement PR 5649 on troubleshooting timeout errors (#6183)
KMiller-Grafana May 26, 2022
410c1a0
feat(ruler): support alert relabeling (#6220)
adityacs May 26, 2022
a795b93
chore(cache): Make exprimental messages more clear for cache. (#6219)
kavirajk May 26, 2022
58718a5
Add jsonnet tools to build image (#6255)
pracucci May 26, 2022
afa53f1
Loki mixin: publish compiled version of the mixin (#6254)
pracucci May 26, 2022
51dabcf
docs: Default loki service port. (#6212)
1Psy May 30, 2022
0cb3994
Memberlist related jsonnet (#6253)
cstyan May 30, 2022
7cc6aa4
feat: Add support for Azure user assigned identity (#5891)
stevehipwell May 30, 2022
3b3fcf6
update drone branch match for 3 digit k release (#6263)
sandeepsukhani May 30, 2022
9b2786b
Fix delete updates (#6194)
MasslessParticle May 30, 2022
e61f8dc
operator: Document how to connect Grafana to gateway (#6250)
xperimental May 30, 2022
9c49a02
docs: Add Nomad deployment examples (#6258)
nahsi May 31, 2022
dc185f6
Fix wording about pattern parser (#6264)
bboreham May 31, 2022
6922190
Documentation: Explain --config.expand-env=true double slash with sla…
V-Mann-Nick May 31, 2022
7369b37
use tsdb config for initializing index gateway client (#6267)
sandeepsukhani May 31, 2022
50ef4f2
Add duration filter unit test (#6271)
btaani May 31, 2022
b2b4fde
Update docs for xk6-loki log formats (#6134)
chaudum Jun 1, 2022
8f4381a
update drone signature (#6277)
sandeepsukhani Jun 1, 2022
2d4ff73
add metrics for tracking index shipper operations (#6278)
sandeepsukhani Jun 1, 2022
f58a14f
Snyk SBOM workflow add (#6274)
SadFaceSmith Jun 1, 2022
7f50a26
Move ingester metrics around (#6275)
simonswine Jun 1, 2022
d91a64f
operator: Add support for custom S3 CA (#6198)
periklis Jun 1, 2022
b5f0557
fix boltdb shipper local query in logcli and support `fake` tenant (#…
slim-bean Jun 1, 2022
f52fc9d
Loki: add a run-once flag to the compactor (#6281)
slim-bean Jun 1, 2022
4c3e276
operator: Add ruler config support (#6195)
periklis Jun 2, 2022
ff5ce4e
Document multi-tenant queries. (#5994)
jeschkies Jun 2, 2022
1c5e094
Only delete data when WholeStreamDeletion or FilterAndDelete (#6286)
MasslessParticle Jun 2, 2022
0470e4e
feat(fluentd): allow fluentd_thread label to be configurable (#6240)
taharah Jun 2, 2022
3c1accc
Import memberlist.libsonnet in loki.libsonnet. (#6294)
cstyan Jun 2, 2022
fefc33d
make tsdb store instance a singleton (#6273)
sandeepsukhani Jun 3, 2022
d9cc6a8
Improve write dashboard by removing unrelated route (#5853)
cyriltovena Jun 3, 2022
7e53381
Avoid line copy during LogQL line_format (#6104)
cyriltovena Jun 3, 2022
9a82f5c
Look up config file in default locations (#6160)
chaudum Jun 3, 2022
7158785
update loki-mixin json dashboards with latest jsonnet changes (#6306)
sandeepsukhani Jun 3, 2022
1ad75d0
do not initialize tsdb index store when using index gateway client fo…
sandeepsukhani Jun 3, 2022
cd7ebf2
exposes line length hist on distributors (#6309)
owen-d Jun 3, 2022
ea0a524
Only consider an interval to have possible expired chunks if it overl…
MasslessParticle Jun 3, 2022
4903df6
Tsdb/inverted index wiring (#6252)
owen-d Jun 3, 2022
7df7169
We shouldn't modify the loki config at all if the memberlist ring is …
vlad-diachenko Jun 3, 2022
a1e0298
Support tenant id from value (#6290)
jkroepke Jun 3, 2022
b757753
fixed type of the property in memberlist config (#6307)
vlad-diachenko Jun 3, 2022
69eabfc
Fix delete cancellation timeout (#6285)
MasslessParticle Jun 3, 2022
135f672
fix: allow promtail docker_sd_config to handle long log lines (#6256)
srstsavage Jun 3, 2022
de418bf
Reduce to a single code path through sendBatches regardless of limit …
splitice Jun 3, 2022
9a2df5a
copy boltdb-shipper cache changes from PR #6054 to generic index ship…
sandeepsukhani Jun 6, 2022
82da01a
make index shipper read path handle range of tables by type of index …
sandeepsukhani Jun 6, 2022
c1be35e
Add licensing boiler plate in case we ever need it (#5251)
RichiH Jun 6, 2022
a877feb
Use fake credentials in storage/chunk/storage tests (#6187)
foutrelis Jun 6, 2022
65e3148
Update delete integration test (#6192)
MichelHollands Jun 7, 2022
36e0979
Add cache usage statistics (#6317)
Jun 7, 2022
086dbf7
always retry syncing index files from indexshipper when the index lis…
sandeepsukhani Jun 7, 2022
5a6157e
Tsdb/index sampling (#6329)
owen-d Jun 7, 2022
e0528b6
Add multi_kv_config block to overrides configmap when multi kv is ena…
JordanRushing Jun 7, 2022
405cdab
Expose Memberlist status page on MemberlistKV module init (#6322)
JordanRushing Jun 7, 2022
57d543e
Update _index.md - an unofficial Loki client added (#6312)
mjfryc Jun 7, 2022
c9b374d
Set `MetricsNamespace` configurable for MemberlistKV module in Loki (…
JordanRushing Jun 7, 2022
3a1fdd0
Define a reason why the fifocache has evicted an item (#6335)
Jun 8, 2022
0011c2d
TSDB/index-sampling-wiring (#6338)
owen-d Jun 8, 2022
e725a21
Docs: Add changelog entry for configuration parameter name change (#6…
KMiller-Grafana Jun 8, 2022
97ee1b9
[logql] don't try to execute a modified function that is not allowed …
cstyan Jun 9, 2022
874aa64
Fix max series test loop that returns early (#6345)
chroberts Jun 9, 2022
ad65cc2
Support `series|labels` query_type in `logql_query_duration` (#6341)
kavirajk Jun 9, 2022
3161d99
Update gopkg.in/yaml.v3 (#6284)
simonswine Jun 9, 2022
caf7dde
operator: Add missing rbac to get/list/watch namespaces (#6303)
periklis Jun 9, 2022
6cbcd6a
loki-canary: Add support for client-side TLS certs for Loki connectio…
chodges15 Jun 9, 2022
3f4a663
Tsdb/index sampling endpoint (#6347)
owen-d Jun 9, 2022
23cc938
chore(fluentd): resolve rubocop failures (#6359)
taharah Jun 10, 2022
73a144e
operator: Expose only an HTTPS gateway when in openshift-logging mode…
aminesnow Jun 10, 2022
6205b96
operator: Allow reduced tenant OIDC authentication requirements (#6362)
periklis Jun 10, 2022
09712df
operator: Allow optional installation of webhooks (#6363)
periklis Jun 10, 2022
9686e4b
Add total number of unique users involved in query readiness. (#6035)
DylanGuedes Jun 10, 2022
67ebb04
cmd/loki: minor consistency patch (#6364)
michaelgrigoryan25 Jun 10, 2022
9218e46
TSDB/query-planning-groundwork (#6367)
owen-d Jun 10, 2022
1794a76
Promtail: Add metrics for journal target (#6105)
RutgerKe Jun 11, 2022
9e26b87
Backport #6413 and #6377 to k102 (#6422) (#6492)
grafanabot Jun 24, 2022
565f982
Don't interupt the query path if deletes aren't available (#6368) (#6…
grafanabot Jun 24, 2022
0a2b760
Use correct counter when deleting lines (#6376) (#6472) (#6494)
grafanabot Jun 24, 2022
236f90d
Add more logging for delete requests (#6394) (#6473) (#6495)
grafanabot Jun 24, 2022
ca53d41
Compactor: add per tenant compaction delete enabled flag (#6410) (#64…
grafanabot Jun 24, 2022
e3aedbc
[k102] Backport Remove whole stream deletion mode (#6435) (#6477) (#6…
grafanabot Jun 24, 2022
c9d5a31
[release-2.6.x] Add TLS config to query frontend (#6498)
Jun 24, 2022
ec7dd43
updated CHANGELOG.md for the release 2.6.0 (#6506)
vlad-diachenko Jun 27, 2022
91cc36d
created section with loki version 2.6.0 in upgrading guide
vlad-diachenko Jun 27, 2022
9c1a781
bumped images/binaries version to 2.6.0
vlad-diachenko Jun 27, 2022
0ef457b
Revert "Add cache usage statistics (#6317)"
Jun 28, 2022
6f5b954
Promtail: disable syslog tests which have expired certs (#6520)
slim-bean Jun 28, 2022
7c90e53
Removing CHANGELOG entry
Jun 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 30 additions & 7 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local condition(verb) = {
[verb]:
[
'refs/heads/main',
'refs/heads/k??',
'refs/heads/k???',
'refs/tags/v*',
],
},
Expand Down Expand Up @@ -46,15 +46,19 @@ local github_secret = secret('github_token', 'infra/data/ci/github/grafanabot',
// Injected in a secret because this is a public repository and having the config here would leak our environment names
local deploy_configuration = secret('deploy_config', 'secret/data/common/loki_ci_autodeploy', 'config.json');


local run(name, commands) = {
local run(name, commands, env={}) = {
name: name,
image: 'grafana/loki-build-image:%s' % build_image_version,
commands: commands,
environment: env,
};

local make(target, container=true) = run(target, [
'make ' + (if !container then 'BUILD_IN_CONTAINER=false ' else '') + target,
local make(target, container=true, args=[]) = run(target, [
std.join(' ', [
'make',
'BUILD_IN_CONTAINER=' + container,
target,
] + args),
]);

local docker(arch, app) = {
Expand Down Expand Up @@ -355,7 +359,7 @@ local manifest(apps) = pipeline('manifest') {
dockerfile: 'loki-build-image/Dockerfile',
username: { from_secret: docker_username_secret.name },
password: { from_secret: docker_password_secret.name },
tags: ['0.20.3'],
tags: ['0.21.0'],
dry_run: false,
},
},
Expand All @@ -369,7 +373,23 @@ local manifest(apps) = pipeline('manifest') {
steps: [
make('check-drone-drift', container=false) { depends_on: ['clone'] },
make('check-generated-files', container=false) { depends_on: ['clone'] },
make('test', container=false) { depends_on: ['clone', 'check-generated-files'] },
run('clone-main', commands=['cd ..', 'git clone $CI_REPO_REMOTE loki-main', 'cd -']) { depends_on: ['clone'] },
make('test', container=false) { depends_on: ['clone', 'clone-main'] },
run('test-main', commands=['cd ../loki-main', 'BUILD_IN_CONTAINER=false make test']) { depends_on: ['clone-main'] },
make('compare-coverage', container=false, args=[
'old=../loki-main/test_results.txt',
'new=test_results.txt',
'packages=ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki',
'> diff.txt',
]) { depends_on: ['test', 'test-main'] },
run('report-coverage', commands=[
"pull=$(echo $CI_COMMIT_REF | awk -F '/' '{print $3}')",
"body=$(jq -Rs '{body: . }' diff.txt)",
'curl -X POST -u $USER:$TOKEN -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/grafana/loki/issues/$pull/comments -d "$body" > /dev/null',
], env={
USER: 'grafanabot',
TOKEN: { from_secret: github_secret.name },
}) { depends_on: ['compare-coverage'] },
make('lint', container=false) { depends_on: ['clone', 'check-generated-files'] },
make('check-mod', container=false) { depends_on: ['clone', 'test', 'lint'] },
{
Expand All @@ -393,6 +413,9 @@ local manifest(apps) = pipeline('manifest') {
image: 'grafana/jsonnet-build:c8b75df',
depends_on: ['clone'],
},
make('loki-mixin-check', container=false) {
depends_on: ['clone'],
},
],
},
] + [
Expand Down
Loading