forked from prometheus/prometheus
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Aliyun ecs sd #6
Merged
KeyOfSpectator
merged 2,171 commits into
AliyunContainerService:feature/aliyun-ecs-discovery
from
yusheng-guo:aliyun-ecs-sd
Aug 9, 2024
Merged
Changes from all commits
Commits
Show all changes
2171 commits
Select commit
Hold shift + click to select a range
1db6a58
Merge pull request #14261 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 22bad5a
Merge pull request #14259 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 5c498b7
build(deps): bump moment-timezone from 0.5.43 to 0.5.45 in /web/ui
dependabot[bot] 6205b54
build(deps): bump @codemirror/language from 6.9.3 to 6.10.2 in /web/ui
dependabot[bot] 50e3712
Merge pull request #14266 from prometheus/dependabot/npm_and_yarn/web…
SuperQ d433d20
Merge pull request #14263 from prometheus/dependabot/npm_and_yarn/web…
SuperQ fed911e
Merge pull request #14233 from prometheus/dependabot/npm_and_yarn/web…
SuperQ afd26e5
Merge pull request #14264 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 5f12cf5
Merge pull request #14257 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 89ab04b
Merge pull request #14265 from prometheus/dependabot/npm_and_yarn/web…
SuperQ ee0527e
Merge pull request #14260 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 0661b90
build(deps): bump http-proxy-middleware from 2.0.6 to 3.0.0 in /web/ui
dependabot[bot] 6e68046
Implement histogram statistics decoder (#14097)
fpetkovski c7fdfe8
promql: Add tests for histogram counter reset only in bucket
beorn7 3feefd9
Update changelog from review comments
krajorama 1f988f7
promql: extend test scripting language to support asserting on expect…
charleskorn 687b9c2
Merge pull request #14262 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 9bfc47f
build(deps-dev): bump @types/sinon from 10.0.20 to 17.0.3 in /web/ui
dependabot[bot] f58f539
build(deps): bump @codemirror/commands from 6.3.2 to 6.6.0 in /web/ui
dependabot[bot] 3db2d8e
build(deps-dev): bump eslint-config-prettier in /web/ui
dependabot[bot] 6fb738a
Merge pull request #14173 from pracucci/fastregexmatcher-optimize-con…
bboreham 77f7820
Merge pull request #14271 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 3ca4000
Merge pull request #14272 from prometheus/dependabot/npm_and_yarn/web…
SuperQ be0d512
Merge pull request #14270 from prometheus/dependabot/npm_and_yarn/web…
SuperQ 51e303d
Merge pull request #14244 from prometheus/dependabot/npm_and_yarn/web…
SuperQ edd5588
Fix Group.Equals() to take in account the new queryOffset too (#14273)
pracucci 80d39c8
Merge pull request #14255 from prometheus/prepare-v2.53-rc.0
krajorama 1d2f2cb
Fix Group.Equals() to take in account the new queryOffset too (#14273)
pracucci dd44001
Update changelog due to pr 14273
krajorama dea9041
Merge pull request #14276 from prometheus/pick-pr14273-to-2.53
krajorama 9adc169
fix according to code review
zenador b0e3204
refine test rewriting regex and add validation
zenador 14f8dde
Merge branch 'main' into nhcb
zenador 5e4e93c
fix lint
zenador 4c2aa87
update readme for testing framework
zenador b8cb12b
rename hist to histogram according to code review
zenador d0d361d
headIndexReader.LabelNamesFor: skip not found series
colega c92a577
fix: broken link on github mobile
parnavh 08621be
Merge pull request #14269 from prometheus/beorn7/histogram-test
beorn7 2dc177d
`MemPostings.Delete()`: reduce locking/unlocking (#13286)
colega 10a3c72
`MemPostings.PostingsForLabelMatching()`: don't hold the mutex while …
colega 19fd521
docs: clarify default Docker command line parameters (#14194)
rgroothuijsen 5a5a6f0
chore: use HumanizeDuration from prometheus/common (#14202)
freak12techno c5d923a
Merge pull request #14279 from colega/fix-label-names-for-not-found
bboreham 64c5cc5
Merge pull request #14209 from bboreham/api-error-url
bboreham 39902ba
[BUGFIX] FastRegexpMatcher: do Unicode normalization as part of case-…
Ranveer777 ea2b39a
Tune default GOGC
SuperQ b31aaa6
Merge pull request #14282 from parnavh/fix-broken-link
roidelapluie 23cca90
Merge pull request #14277 from zenador/nhcb-review
krajorama 7f0caf7
Merge pull request #14285 from prometheus/superq/tune_gogc
SuperQ 0793a26
native histograms: only reduce resolution for exponential histograms
krajorama 6ccee2c
Tune default GOGC
SuperQ 38bf349
Update changelog for GOGC tuning
SuperQ 4c4c2be
Merge pull request #14288 from prometheus/superq/pick_14285
SuperQ 4cfec57
Revert "Update changelog due to pr 14273"
krajorama dd86762
Prepare 2.53.0-rc.1 release
krajorama 6042874
Merge pull request #14284 from prometheus/prepare-2.53.rc.1
krajorama 64a9abb
Change LabelValuesFor() to accept index.Postings (#14280)
colega 05380aa
agent db: make rejecting ooo samples configurable (#14094)
rabenhorst 5a21870
tsdb: Extend compactor interface to allow compactions to create multi…
yeya24 03cf614
Fix Matcher.String() with empty label name
colega 4c1e71f
Reduce the flakiness of TestAsyncRuleEvaluation (#14300)
colega e7db2e3
fix check context cancellation not incrementing count
yeya24 e121d07
Prepare release 2.53.0
krajorama 0e6fca8
add unit test
yeya24 5efc8dd
Merge pull request #14302 from yeya24/fix-check-ctx-cancel-count
krajorama 987fa5c
Convert range query test cases to test scripting language
charleskorn aeec30f
Convert `TestTimestampFunction_StepsMoreOftenThanSamples`
charleskorn 0fbf4a2
Export remote.ToLabelMatchers()
pracucci 6572b1f
Merge pull request #14306 from pracucci/export-tolabelmatchers
roidelapluie 4f78cc8
Refactor `toNormalisedLower`: shorter and slightly faster. (#14299)
colega fd1a89b
Pass affected labels to `MemPostings.Delete()` (#14307)
colega 29d3e48
Update CHANGELOG.md
krajorama 1c3f322
docs: mention implicitly watched directories in documentation (#14019)
rgroothuijsen 4c35b92
Merge pull request #14303 from prometheus/prepare-2.53.0-release
krajorama c309f50
Add comment to state intent of check
krajorama 79020b1
Comment float histogram as well
krajorama d3318c2
Merge pull request #14287 from krajorama/nhcb-suggest-fix
krajorama d968408
Merge branch 'main' into charleskorn/convert-range-query-tests
beorn7 b6ef745
Merge pull request #14305 from charleskorn/charleskorn/convert-range-…
beorn7 be975bf
golangci-lint: Enable loggercheck linter
aknuds1 545d31f
docs: clarify backup requirements for storage (#14297)
anarcat 94d28cd
chore(notifier): add a reproducer for https://github.com/prometheus/…
machine424 690de48
chore(notifier): Split 'Run()' into two goroutines: one to receive ta…
machine424 70beda0
fix(notifier): take alertmanagerSet.mtx before checking alertmanagerS…
machine424 fcabffb
Merge branch 'release-2.53' into merge-2.53-to-main
krajorama 9a8b6c5
Merge pull request #14313 from prometheus/merge-2.53-to-main
krajorama 5a1886d
Merge branch 'main' into arve/loggercheck
bboreham 84602bb
Merge branch 'main' into fix-matcher-string-with-empty-label-name
bboreham f45b0fd
Merge pull request #14311 from aknuds1/arve/loggercheck
aknuds1 6685cbc
Merge branch 'main' into fix-matcher-string-with-empty-label-name
bboreham 5c41768
Merge pull request #14296 from colega/fix-matcher-string-with-empty-l…
bboreham 35564c0
Export remote.LabelsToLabelsProto() and remote.LabelProtosToLabels()
pracucci f9ca6c4
chore: add an alert based on the metric prometheus_sd_kubernetes_fail…
machine424 b6dc9c1
Merge branch 'main' into export-labelsToLabelsProto
pracucci c25d6d8
Merge pull request #14316 from pracucci/export-labelsToLabelsProto
krajorama 2aaf99d
discovery: aws: expose Primary IPv6 addresses as label, partially fix…
akunszt a6d788b
update missed suggested change from code review
zenador fc9dc72
remove eval_with_nhcb
zenador dda5f48
Merge branch 'main' into nhcb-review-2
zenador a3d92dd
Merge pull request #14292 from zenador/nhcb-review-2
krajorama d5f6887
Pass limit param as hint to storage.Querier
harry671003 dbd29df
Fix @goyacc invocation (#14324)
prymitive d782533
queue_manager: add histogram info to error logs (#14326)
thampiotr 2ced2f6
[PERF] Labels: faster varint for dedupelabels
bboreham 0d25931
rebase main and adjust the configuration
DrAuYueng 2ba7bc9
Labels: further optimisation for dedupelabels
bboreham 7a82e4b
Labels benchmarks: remove artefact of small symbol-tables
bboreham 00b110c
Fix data corruption in remote write if max_sample_age is applied (#14…
FUSAKLA f45709e
Update model/histogram/histogram_test.go
krajorama 505ffd3
Fix lint error
krajorama b6aba4f
Merge pull request #14074 from bboreham/kahan-sum-sum
bboreham 6030407
Merge branch 'main' into elide-queriers
bboreham d902116
Fix various linting errors
aknuds1 0395b04
golangci-lint: Upgrade to v1.59.1
aknuds1 2c5e887
Fix issue where pending OOO read can be left dangling if creating que…
charleskorn 5585a3c
tsdb: expose hook to customize block querier (#14114)
yeya24 246b7c6
TSDB: Change block populator to accept postings index function (#14213)
yeya24 348f7f8
Merge pull request #14341 from charleskorn/charleskorn/cleanup-pendin…
bboreham 9935544
remote write handler: reject samples with future timestamps (#14304)
jkroepke 1b5f650
Bump go-retryablehttp to fix basic auth creds leak
danielmellado 1abeeba
Merge pull request #14340 from aknuds1/arve/fix-lint
aknuds1 f24ce00
Merge pull request #13434 from bboreham/elide-queriers
bboreham 2dd07fb
notifier: optionally drain queued notifications before shutting down …
charleskorn c5040c5
Merge pull request #10490 from DrAuYueng/fix-docker-sd-service-missing
bboreham cb73061
Merge pull request #14004 from liam-howe-maersk/implement-config-marshal
beorn7 3c9e3ee
parser: support underscores
rexagod 7f5ae04
MAINTAINERS.md: Added Nico and Alex as remote/storage owners. (#14352)
bwplotka 19da579
Merge pull request #12821 from rexagod/12769
beorn7 2e58d46
Merge pull request #13662 from prometheus/nhcb
beorn7 fd6bdf5
Fix issue where summation of +/- infinity returns NaN instead of infi…
charleskorn 9290d13
fix(docs/querying): explain `ceil` behaviour more explicitly with exa…
RiRa12621 cd5a7b5
Make rules Manager Update method no-op after Close
rapphil e0c9b2e
Fix linting errors
rapphil 4f2558d
Merge pull request #14366 from rapphil/rapphil-fix-panic-ruler
bwplotka 675d02c
Merge pull request #14333 from bboreham/faster-dedupelabels
bboreham f4b1fcb
discovery: add support for gathering flavor name in Openstack discove…
paulojmdias ec31aca
FastRegexMatcher: small optimization for the literal prefix case
pracucci 32f4bf5
Merge pull request #14368 from pracucci/optimize-literal-prefix-strin…
bboreham 24b78be
otlp: Clean up exponential histogram code slightly
aknuds1 9595b17
otlp: Document regular and exponential histogram conversions
aknuds1 a39e7e2
Merge pull request #14371 from aknuds1/arve/cleanup-otlp-histograms
aknuds1 f090ab1
build(deps): bump sass from 1.77.4 to 1.77.6 in /web/ui
dependabot[bot] 65f57ca
build(deps-dev): bump @types/node from 20.14.2 to 20.14.9 in /web/ui
dependabot[bot] 512b490
build(deps): bump github/codeql-action from 3.25.8 to 3.25.11
dependabot[bot] 35811ed
build(deps): bump bufbuild/buf-setup-action from 1.32.2 to 1.34.0
dependabot[bot] c53fdad
build(deps): bump github.com/prometheus/common
dependabot[bot] fb1b3d6
build(deps): bump actions/checkout from 4.1.6 to 4.1.7 in /scripts
dependabot[bot] 9cf4b96
Merge pull request #14388 from prometheus/dependabot/go_modules/docum…
bwplotka 726ed12
Replace `ListPostings.Seek`'s binary search call by the generic `slic…
colega 3d54bcc
Merge pull request #14362 from charleskorn/charleskorn/sum-infinity
codesome 134e8dc
TSDB: Simplify OOO Select by copying the head chunk (#14396)
bboreham 60917f6
Add test utilities for testing different sample types.
carrieedwards 45a32a2
Update tsdb tests to use test utils.
carrieedwards cb76884
Fix linting
carrieedwards 0655088
Clean up of tests and test utils
carrieedwards 55f5333
Use storage.ExpandSamples instead of samplesFromIterator
carrieedwards 0049900
Testutil refactoring
carrieedwards ee909b3
Fix test
carrieedwards ba948e9
Merge pull request #13699 from prometheus/cedwards/tsdb-test-helpers
carrieedwards 82a8c6a
[ENHANCEMENT] Optimize regexps with multiple prefixes (#13843)
bboreham c94c5b6
feat: add limitk() and limit_ratio() operators (#12503)
jjo c9bc1c2
Update histogram math (#13680)
Maniktherana 9198952
[PRW 2.0] Merging `remote-write-2.0` feature branch to main (PRW 2.0 …
bwplotka 10ecd76
writev2: Add basic support for nhcb.
bwplotka 709c5d6
TSDB: Lock around access to labels in head under -tags dedupelabels (…
bboreham 7ca31c6
Scraping: add metric for symbol table size
bboreham b42b5fb
Scraping: check symbol-table on sync
bboreham 74b1f3d
Refactor: scraping: extract method restartLoops
bboreham e6356e6
Scraping: drop series cache when resizing symbol table
bboreham 5281a6b
TSDB: rebuild labels symbol-table on each compaction
bboreham 4d7532f
tsdb: reset symbol table for exemplars periodically
bboreham 89608c6
Merge pull request #14328 from bboreham/more-dedupelabels
bboreham e410a21
Fix a couple of comments
aknuds1 480fefd
Split warnings and info annotations in API response (#14327)
zenador 0f0b3d8
Document info-level annotations in query response
juliusv 06f0f2e
Merge pull request #14429 from prometheus/document-info-annotations
beorn7 8849b7d
chore: remove console logs (#14430)
Maniktherana e5c6968
Fix web.cors.origin in command-line/prometheus.md
B1F030 5646c31
Merge pull request #14416 from prometheus/prw2.0-nhcb
bwplotka d002fad
Merge pull request #14424 from aknuds1/arve/fix-comments
beorn7 7083ae8
[release 2.53] Revert 13583 to stop dropping samples in remote-write …
bboreham 7b595d6
2.54: Propose Bryan Boreham as release shepherd (#14453)
bboreham acb6c1a
Fix decoding buckets for native histograms in binops
fpetkovski 14cfec3
Prepare release 2.53.1 (#14452)
bboreham 646e1e8
Merge branch 'release-2.53' into merge-2.53.1
bboreham b1c106a
Merge pull request #14454 from fpetkovski/fix-binop-hist-stats
beorn7 398f42d
Add label-matcher support to Rules API (#10194)
saswatamcode 8c8860d
Allow number literals as duration
darshanime cfad8ff
Deprecate duration token
darshanime bd4ea11
Allow durations for number rule
darshanime 1a1b09f
Add a note about the new syntax
darshanime 706e199
adjust version number in documentation
beorn7 9d744de
Merge pull request #14455 from bboreham/merge-2.53.1
bboreham dd48eab
build(deps): bump @codemirror/autocomplete in /web/ui
dependabot[bot] dca82e0
build(deps-dev): bump ts-jest from 29.1.4 to 29.2.1 in /web/ui
dependabot[bot] 58963f7
Merge pull request #9138 from darshanime/duration_number_duality
beorn7 cb8b6d7
Allow built-in tests to be customized
fpetkovski caa71fb
chore(storage/remote): collect maxTimestamp when value is 0 as well.
machine424 ad03ede
fix markdown list
smd1121 bab098a
change all lists to bullets
smd1121 0c87643
[PRW 2.0] write_handler: Support for rc.2 spec & improved error handl…
bwplotka d116bf7
Merge pull request #14109 from harry671003/pass_limit_to_querier
bboreham 5067294
golangci-lint: Don't use deprecated config params
aknuds1 f6e37c5
Merge pull request #14459 from prometheus/dependabot/npm_and_yarn/web…
aknuds1 42293c0
Merge pull request #14458 from prometheus/dependabot/npm_and_yarn/web…
aknuds1 c458cb7
build(deps-dev): bump ts-jest from 29.2.1 to 29.2.2 in /web/ui
dependabot[bot] 64bfd2f
Merge pull request #14390 from prometheus/dependabot/github_actions/s…
aknuds1 3eda19a
Merge pull request #14386 from prometheus/dependabot/github_actions/b…
aknuds1 f23792f
Merge pull request #14468 from prometheus/dependabot/npm_and_yarn/web…
aknuds1 18a40e3
build(deps): bump the go-opentelemetry-io group across 1 directory wi…
dependabot[bot] a41a053
Merge pull request #14384 from prometheus/dependabot/go_modules/go-op…
aknuds1 5daf584
Merge pull request #14385 from prometheus/dependabot/github_actions/g…
aknuds1 9f9f929
Merge pull request #14375 from prometheus/dependabot/npm_and_yarn/web…
aknuds1 52a73ec
Merge pull request #14374 from prometheus/dependabot/npm_and_yarn/web…
aknuds1 4c74d35
Merge branch 'prometheus:main' into patch-1
B1F030 5c2590c
revert main.go
B1F030 15ac95d
change documentcli
B1F030 3648386
fix fmt
B1F030 2ca4d16
storage: add `AtT` method to `MemoizedSeriesIterator`
charleskorn c0f1b45
build(deps): bump @codemirror/view from 6.27.0 to 6.28.3 in /web/ui (…
dependabot[bot] efdd6fc
Merge pull request #14467 from aknuds1/arve/fix-golangcilint-deprecat…
bboreham bb241d7
Merge pull request #14463 from fpetkovski/customize-acceptance-tests
bboreham c6c240d
build(deps): bump @codemirror/lint from 6.8.0 to 6.8.1 in /web/ui (#1…
dependabot[bot] d7d06b4
Merge pull request #14420 from B1F030/patch-1
aknuds1 d878146
TSDB: shrink memSeries by moving bools together
bboreham f031fe1
Update storage.md to provide right-sizing advice on retention
SeanKilleen e892483
Merge pull request #14469 from charleskorn/memoizedseriesiterator-att
bboreham c39776c
promql: Add NHCB tests
beorn7 2e0e4e9
Add support for handling multiple chunks in OOO head
carrieedwards fb2ebe1
Fix linting
carrieedwards e0d7cef
Rename some variables in Commit()
carrieedwards 7e020bb
Refactor
carrieedwards 79b53bd
Refactor TestWBLReplay to use scenarios
carrieedwards 02f05cb
Ensure lastMmapRef set to 0 if mmapRefs is empty
carrieedwards a28d197
Merge pull request #14438 from prometheus/cedwards/ooo-chunk-encoding
carrieedwards ca7062c
Merge pull request #14464 from prometheus/beorn7/histogram
beorn7 b75e635
Merge pull request #14476 from SeanKilleen/patch-2
bboreham a6fa8a4
docs: Correct and clarify histogram bucket and resolution limits
beorn7 bdfeae6
Merge pull request #14474 from bboreham/shrink-memseries
bboreham e9dec5f
Merge pull request #14483 from prometheus/beorn7/doc
beorn7 782af34
Merge branch 'master' into aliyun-ecs-sd
yusheng-guo 0adec53
add unit test for aliyun service discovery
yusheng-guo 8acf5e6
run golangci-lint to improve code
yusheng-guo 6833d58
remove redundant content
yusheng-guo b39ff8e
translate into English
yusheng-guo c2e1353
add license header
yusheng-guo 0d58333
coding style follows <Go Code Review Comments>
yusheng-guo 0444240
add test cases
yusheng-guo 0f00b17
fixed: yaml key error
yusheng-guo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
/web/ui @juliusv | ||
/web/ui/module @juliusv @nexucis | ||
/storage/remote @csmarchbanks @cstyan @bwplotka @tomwilkie | ||
/storage/remote @cstyan @bwplotka @tomwilkie | ||
/storage/remote/otlptranslator @aknuds1 @jesusvazquez | ||
/discovery/kubernetes @brancz | ||
/tsdb @codesome | ||
/tsdb @jesusvazquez | ||
/promql @roidelapluie | ||
/cmd/promtool @dgl | ||
/documentation/prometheus-mixin @metalmatze | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,35 +8,57 @@ jobs: | |
test_go: | ||
name: Go tests | ||
runs-on: ubuntu-latest | ||
# Whenever the Go version is updated here, .promu.yml | ||
# should also be updated. | ||
container: | ||
image: quay.io/prometheus/golang-builder:1.20-base | ||
# Whenever the Go version is updated here, .promu.yml | ||
# should also be updated. | ||
image: quay.io/prometheus/golang-builder:1.22-base | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/setup_environment | ||
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1 | ||
- run: go test ./tsdb/ -test.tsdb-isolation=false | ||
- run: go test --tags=stringlabels ./... | ||
- run: GOARCH=386 go test ./cmd/prometheus | ||
- run: make GOOPTS=--tags=stringlabels GO_ONLY=1 SKIP_GOLANGCI_LINT=1 | ||
- run: go test --tags=stringlabels ./tsdb/ -test.tsdb-isolation=false | ||
- run: make -C documentation/examples/remote_storage | ||
- run: make -C documentation/examples | ||
|
||
test_go_more: | ||
name: More Go tests | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/prometheus/golang-builder:1.22-base | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/setup_environment | ||
- run: go test --tags=dedupelabels ./... | ||
- run: GOARCH=386 go test ./cmd/prometheus | ||
- uses: ./.github/promci/actions/check_proto | ||
with: | ||
version: "3.15.8" | ||
|
||
test_go_oldest: | ||
name: Go tests with previous Go version | ||
runs-on: ubuntu-latest | ||
container: | ||
# The go version in this image should be N-1 wrt test_go. | ||
image: quay.io/prometheus/golang-builder:1.21-base | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- run: make build | ||
# Don't run NPM build; don't run race-detector. | ||
- run: make test GO_ONLY=1 test-flags="" | ||
|
||
test_ui: | ||
name: UI tests | ||
runs-on: ubuntu-latest | ||
# Whenever the Go version is updated here, .promu.yml | ||
# should also be updated. | ||
container: | ||
image: quay.io/prometheus/golang-builder:1.20-base | ||
image: quay.io/prometheus/golang-builder:1.22-base | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/setup_environment | ||
with: | ||
enable_go: false | ||
|
@@ -52,36 +74,24 @@ jobs: | |
name: Go tests on Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: '>=1.20 <1.21' | ||
go-version: 1.22.x | ||
- run: | | ||
$TestTargets = go list ./... | Where-Object { $_ -NotMatch "(github.com/prometheus/prometheus/discovery.*|github.com/prometheus/prometheus/config|github.com/prometheus/prometheus/web)"} | ||
go test $TestTargets -vet=off -v | ||
shell: powershell | ||
|
||
test_golang_oldest: | ||
name: Go tests with previous Go version | ||
runs-on: ubuntu-latest | ||
# The go verson in this image should be N-1 wrt test_go. | ||
container: | ||
image: quay.io/prometheus/golang-builder:1.18-base | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: make build | ||
- run: go test ./tsdb/... | ||
- run: go test ./tsdb/ -test.tsdb-isolation=false | ||
|
||
test_mixins: | ||
name: Mixins tests | ||
runs-on: ubuntu-latest | ||
# Whenever the Go version is updated here, .promu.yml | ||
# should also be updated. | ||
container: | ||
image: quay.io/prometheus/golang-builder:1.19-base | ||
image: quay.io/prometheus/golang-builder:1.22-base | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- run: go install ./cmd/promtool/. | ||
- run: go install github.com/google/go-jsonnet/cmd/jsonnet@latest | ||
- run: go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest | ||
|
@@ -104,8 +114,8 @@ jobs: | |
matrix: | ||
thread: [ 0, 1, 2 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/build | ||
with: | ||
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386" | ||
|
@@ -127,29 +137,44 @@ jobs: | |
# Whenever the Go version is updated here, .promu.yml | ||
# should also be updated. | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/build | ||
with: | ||
parallelism: 12 | ||
thread: ${{ matrix.thread }} | ||
check_generated_parser: | ||
name: Check generated parser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Install Go | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
cache: false | ||
go-version: 1.22.x | ||
- name: Run goyacc and check for diff | ||
run: make install-goyacc check-generated-parser | ||
golangci: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: 1.20.x | ||
go-version: 1.22.x | ||
- name: Install snmp_exporter/generator dependencies | ||
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev | ||
if: github.repository == 'prometheus/snmp_exporter' | ||
- name: Lint | ||
uses: golangci/golangci-lint-action@v3.4.0 | ||
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1 | ||
with: | ||
version: v1.51.2 | ||
args: --verbose | ||
# Make sure to sync this with Makefile.common and scripts/golangci-lint.yml. | ||
version: v1.59.1 | ||
fuzzing: | ||
uses: ./.github/workflows/fuzzing.yml | ||
if: github.event_name == 'pull_request' | ||
|
@@ -159,25 +184,25 @@ jobs: | |
publish_main: | ||
name: Publish main branch artifacts | ||
runs-on: ubuntu-latest | ||
needs: [test_ui, test_go, test_windows, golangci, codeql, build_all] | ||
needs: [test_ui, test_go, test_go_more, test_go_oldest, test_windows, golangci, codeql, build_all] | ||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/publish_main | ||
with: | ||
docker_hub_login: ${{ secrets.docker_hub_login }} | ||
docker_hub_password: ${{ secrets.docker_hub_password }} | ||
quay_io_login: ${{ secrets.quay_io_login }} | ||
quay_io_password: ${{ secrets.quay_io_password }} | ||
publish_release: | ||
name: Publish release arfefacts | ||
name: Publish release artefacts | ||
runs-on: ubuntu-latest | ||
needs: [test_ui, test_go, test_windows, golangci, codeql, build_all] | ||
needs: [test_ui, test_go, test_go_more, test_go_oldest, test_windows, golangci, codeql, build_all] | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- uses: ./.github/promci/actions/publish_release | ||
with: | ||
docker_hub_login: ${{ secrets.docker_hub_login }} | ||
|
@@ -191,14 +216,14 @@ jobs: | |
needs: [test_ui, codeql] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: prometheus/[email protected] | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- uses: prometheus/promci@3cb0c3871f223bd5ce1226995bd52ffb314798b6 # v0.1.0 | ||
- name: Install nodejs | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version-file: "web/ui/.nvmrc" | ||
registry-url: "https://registry.npmjs.org" | ||
- uses: actions/cache@v3.3.1 | ||
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / Scorecard
Token-Permissions High