Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
5f7152d
Include multi agent
Mar 26, 2024
975e017
Include permission for scripts
Mar 26, 2024
5b13b9c
update permission
Mar 26, 2024
3bc47d5
update metadata
Mar 26, 2024
7a31139
update metadata
Mar 26, 2024
f6e1065
update metadata
Mar 26, 2024
904e183
test release
Mar 26, 2024
b9ae988
test release
Mar 26, 2024
f371afa
test concurrency gate
Mar 28, 2024
0adb111
fix code
Mar 28, 2024
411bb40
fix code
Mar 28, 2024
e040456
test notification
Apr 2, 2024
f50babc
fix format
Apr 2, 2024
9726ff1
exit
Apr 2, 2024
bda5915
exit
Apr 2, 2024
2821b33
exit
Apr 2, 2024
0928310
test pass/ fail
Apr 2, 2024
c7129ee
test pass/ fail
Apr 2, 2024
3161575
test pass/ fail
Apr 2, 2024
1051b56
test pass/ fail
Apr 2, 2024
c55f2c5
test pass/ fail
Apr 2, 2024
9ca3f99
block pipeline
Apr 2, 2024
7e32218
block pipeline
Apr 2, 2024
f8586e1
block pipeline
Apr 2, 2024
6a6ad76
block pipeline
Apr 2, 2024
e7aa4d0
include trigger
Apr 2, 2024
9df1666
include trigger
Apr 2, 2024
321b7bb
include trigger
Apr 2, 2024
dec8abb
include trigger
Apr 2, 2024
7d307ff
include trigger
Apr 2, 2024
283532c
test plugin
Apr 2, 2024
db4b48f
test plugin
Apr 2, 2024
0574f2c
test plugin
Apr 2, 2024
de5dd75
test plugin
Apr 2, 2024
0112181
update plugin
Apr 3, 2024
ef4b2d2
block on condition
Apr 3, 2024
eaed668
block on condition
Apr 3, 2024
852af50
block on condition
Apr 3, 2024
a88b99f
Test freeze
Apr 3, 2024
afca0ed
Test freeze
Apr 3, 2024
c1da901
Test freeze
Apr 3, 2024
3fd8ab6
include annotation
Apr 3, 2024
9d061a3
include annotation
Apr 3, 2024
81ce196
include hook
Apr 4, 2024
c598ed4
include hook
Apr 4, 2024
05a0ebd
verify step
Apr 5, 2024
d2df36e
verify step
Apr 5, 2024
0139316
verify step
Apr 5, 2024
f6ae9a5
verify step
Apr 5, 2024
6dabd03
per agent con
Apr 8, 2024
acd8afc
test metadata
Apr 16, 2024
2274f0f
test metadata
Apr 17, 2024
518eb32
test metadata
Apr 17, 2024
4696512
test metadata
Apr 17, 2024
4c12368
test metadata
Apr 17, 2024
bf1bc3a
remove step level set
Apr 17, 2024
4d9d4bf
test without cmd
Apr 17, 2024
a57c551
add new line
Apr 17, 2024
83c1ac3
including sparse plugin
Apr 22, 2024
64478ae
format
Apr 22, 2024
b7e0826
format paths
Apr 22, 2024
5cb0552
Include sparse plugin
Apr 22, 2024
2c73724
include sparse cmd
Apr 22, 2024
d290d24
include sparse cmd
Apr 22, 2024
9511ac4
include sparse cmd
Apr 22, 2024
edde594
include sparse cmd
Apr 22, 2024
f66d48c
include sparse cmd
Apr 23, 2024
c3ddf10
include sparse cmd
Apr 23, 2024
b884a51
include sparse cmd
Apr 23, 2024
38f6217
include src/test.py
Apr 23, 2024
b7d9df0
test trigger
Apr 23, 2024
4501c6e
test trigger
Apr 23, 2024
cb4a40c
remove empty line
Apr 29, 2024
0d6730d
test multi line env
Apr 30, 2024
dedc9ab
test multi line env
Apr 30, 2024
7b630cb
test multi line env
Apr 30, 2024
cb163af
Test go
Apr 30, 2024
6911eeb
Test go
Apr 30, 2024
07e9748
permission
Apr 30, 2024
80dab27
permission
Apr 30, 2024
0a9cba5
permission
Apr 30, 2024
093e412
[ci skip] remove foo
Apr 30, 2024
e2a66b1
removed ci skip
Apr 30, 2024
fc7d4c8
removed [skip-ci]
Apr 30, 2024
a5ab9c8
test mirror
May 7, 2024
0382b62
test mirror
May 7, 2024
66e5da3
test mirror
May 7, 2024
e786845
test mirror
May 7, 2024
e924481
test
May 8, 2024
e0bc1ff
test
May 8, 2024
78b5b16
test
May 8, 2024
9f41be2
test
May 8, 2024
8940648
add cli
May 9, 2024
5da2886
teams
May 9, 2024
6361be1
teams
May 9, 2024
143233d
teams
May 9, 2024
3058bde
teams
May 9, 2024
2980512
teams
May 9, 2024
ddef732
block with dependency
May 10, 2024
bce8514
inlcude plugin
May 17, 2024
ea85307
plugin
May 17, 2024
27564ee
plugin
May 17, 2024
3b55ec8
hosted
May 17, 2024
33a1e41
added kubernetes
May 21, 2024
4c62fff
added kubernetes
May 21, 2024
eda6319
test with artifact
May 22, 2024
6ccff96
test with artifact
May 22, 2024
6926591
include artifact
May 22, 2024
09b1199
include artifact
May 22, 2024
d00cbc0
include artifact
May 22, 2024
a3a659b
include artifact
May 22, 2024
b0df1fc
include artifact
May 22, 2024
1952def
include artifact
May 22, 2024
6a63f89
include artifact
May 22, 2024
08c2c71
include artifact
May 22, 2024
f745144
include artifact
May 22, 2024
0fadcab
include artifact
May 22, 2024
651f056
test
May 22, 2024
bf5e010
test
May 22, 2024
7818b6a
test
May 22, 2024
efbbe64
test
May 22, 2024
5cb669c
art
May 22, 2024
f3fbb84
art
May 22, 2024
5f70db9
art
May 22, 2024
e400007
art
May 22, 2024
b4ad73d
art
May 22, 2024
ca75c65
art
May 22, 2024
d92dd47
art
May 22, 2024
03a0f75
art
May 22, 2024
0f7cac9
art
May 22, 2024
4969e17
art
May 22, 2024
1fc8e5c
art
May 22, 2024
df85c4e
art
May 22, 2024
062e324
art
May 22, 2024
446fc1a
art
May 22, 2024
a4f9a0b
art
May 22, 2024
5173c2e
art
May 22, 2024
800b1e0
art
May 22, 2024
547c942
art
May 22, 2024
51a836e
art
May 22, 2024
ee7b307
test artifact
May 27, 2024
ef44fa4
test artifact
May 27, 2024
8a7ff89
test artifact
May 27, 2024
0c574b7
test artifact
May 27, 2024
ed6159c
test artifact
May 27, 2024
346d8c3
test artifact
May 27, 2024
f9804fc
test artifact
May 27, 2024
784ff10
test artifact
May 27, 2024
86cc8d4
test artifact
May 27, 2024
215781f
test artifact
May 27, 2024
7e53869
test artifact
May 27, 2024
27dc59a
test artifact
May 27, 2024
2b0a250
test artifact
May 27, 2024
5cf99fc
good upload
May 27, 2024
43aa683
good upload
May 27, 2024
b022670
good upload
May 27, 2024
2829b85
good upload
May 27, 2024
46c4017
good upload
May 27, 2024
2b11c62
good upload
May 27, 2024
405b2d7
good upload
May 27, 2024
629e327
good upload
May 27, 2024
962befc
good upload
May 27, 2024
f57a3bf
good upload
May 27, 2024
780e872
good upload
May 27, 2024
c7f3d8a
good upload
May 27, 2024
7e2619e
good upload
May 27, 2024
6e1522b
good upload
May 27, 2024
f836a37
good upload
May 27, 2024
696b7c6
good upload
May 27, 2024
f2b187b
good upload
May 27, 2024
459f2b3
good upload
May 27, 2024
650896c
good upload
May 27, 2024
649e9a3
include pkg
May 29, 2024
6f2070c
custom ami test
May 29, 2024
fa8b0fd
custom ami test
May 29, 2024
71dc78f
custom ami test
May 29, 2024
99eb456
test exit status
May 29, 2024
99af965
test exit status
May 29, 2024
5a7c897
test ignore-missing
May 30, 2024
91aa85c
test ignore-missing
May 30, 2024
60721a2
test ignore-missing
May 30, 2024
e73b01d
test ignore-missing
May 30, 2024
7881a07
test ignore-missing
May 30, 2024
948e78c
test ignore-missing
May 30, 2024
5461591
test ignore-missing
May 30, 2024
8277a08
add custom checkout
Jun 4, 2024
d0465a1
add custom checkout
Jun 4, 2024
c9268e3
add modified
Jun 4, 2024
d962fbf
reverted
Jun 4, 2024
be10297
added
Jun 4, 2024
2d95851
test oidc
Jun 5, 2024
91f15e9
conditional dependency
Jun 6, 2024
a264c7b
conditional dependency
Jun 6, 2024
62aef12
conditional dependency
Jun 6, 2024
e982292
test
Jun 7, 2024
fe3a4e7
test 65157
Jun 7, 2024
7b0d970
this commit 65157$ should cause issues
Jun 7, 2024
da28bf5
this commit 65157$ should cause issues with trigger
Jun 7, 2024
13c4824
test upload
Jun 13, 2024
81827a4
test upload
Jun 13, 2024
7b9e6b9
test upload
Jun 13, 2024
6b16e6b
test upload
Jun 13, 2024
5df9f7c
test (#29)
PriyaSudip Jun 21, 2024
255f36a
Test merge (#30)
PriyaSudip Jun 21, 2024
afaa25c
t
Jun 21, 2024
229496a
test dynamic
Jun 27, 2024
d735b63
test dynamic
Jun 27, 2024
0994eef
test dynamic
Jun 27, 2024
667635c
test dynamic
Jun 27, 2024
3166fa1
test dynamic
Jun 27, 2024
f98267d
test pre-exit
Jun 28, 2024
ae5b6aa
test pre-exit
Jun 28, 2024
813f11b
test pre-exit
Jun 28, 2024
61af9be
test pre-exit
Jun 28, 2024
75e6fef
test pre-exit
Jun 28, 2024
731ea7c
test pre-exit
Jun 28, 2024
7672ecc
test pre-exit
Jun 28, 2024
ec4c40e
test pre-exit
Jun 28, 2024
e0db9c2
test pre-exit
Jun 28, 2024
ece01a2
test pre-exit
Jun 28, 2024
dfc9714
include dd
Jul 4, 2024
4213441
include dd
Jul 4, 2024
e5f14b2
Update test.txt
PriyaSudip Jul 9, 2024
48bd7d5
modify
Jul 9, 2024
8bf8a23
modify 1
Jul 9, 2024
00dcd3f
modify 2
Jul 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .buildkite/annotate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- label: annotate
plugins:
- bugcrowd/test-summary#v1.8.0:
inputs:
- label: rspec
artifact_path: artifacts/rspec*
type: junit
formatter:
type: details
context: test-summary
8 changes: 8 additions & 0 deletions .buildkite/artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
steps:
- label: Upload
key: step1
command: buildkite-agent artifact upload "./upload.txt"

- label: Download
depends_on: step1
command: buildkite-agent artifact download "*upload.txt" .
12 changes: 12 additions & 0 deletions .buildkite/artifact_plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
steps:
- label: ":test multi line:"
command: ./src/create_artifact.sh
plugins:
- artifacts#v1.9.2:
upload: "./testr/revisions1/foo1.txt"
ignore-missing: false

- command: "download"
plugins:
- artifacts#v1.9.2:
download: "./testr/revisions1/foo1.txt"
3 changes: 3 additions & 0 deletions .buildkite/block_on_condition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
steps:
- label: Deploy to testing
command: echo "hello 1"
21 changes: 21 additions & 0 deletions .buildkite/block_step.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
steps:
- block: "Release"
prompt: "Fill out the details for release"
fields:
- text: "Release Name"
key: "release-name"
hint: "Think of a cool name for this release"
- text: "Changelog"
key: "release-notes"
required: false
hint: "List of what's changed in this release"
- select: "Type"
key: "release-type"
default: "beta"
options:
- label: "Beta"
value: "beta"
- label: "Stable"
value: "stable"
- command: ./src/release.sh
label: ":rocket:"
18 changes: 18 additions & 0 deletions .buildkite/block_with_dependency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
steps:

- label: 1st step
command: echo "hello"

- label: 2st step
key: 2
command: exit -1

- block: "Release"
key: 3
depends_on: 2
prompt: "check dependency"
blocked_state: failed

- label: 3rd step
depends_on: 3
command: echo "hi"
22 changes: 22 additions & 0 deletions .buildkite/blocked.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

steps:

- label: Deploy to testing
command: echo "hello"
agents:
multi: 'yes'

- label: Deploy to staging
command: echo "hello"
agents:
multi: 'yes'

- label: Deploy to production
command: echo "hello"
agents:
multi: 'yes'

- label: Deploy to live
agents:
multi: 'yes'

5 changes: 5 additions & 0 deletions .buildkite/cleanup/test_cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail


echo "from cleanaup ******"
4 changes: 4 additions & 0 deletions .buildkite/cli_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
steps:

- label: CLI
command: echo "hello"
37 changes: 37 additions & 0 deletions .buildkite/concurrency_gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
steps:
- command: echo "Running unit tests"
key: unit-tests
agents:
queue: default
- command: echo "--> Start of concurrency gate"
concurrency_group: gate
concurrency: 1
key: start-gate
depends_on: unit-tests
agents:
queue: default
- wait
- command: echo "Running deployment to staging environment"
key: stage-deploy
depends_on: start-gate
agents:
queue: default
- command: echo "Running e2e tests after the deployment"
parallelism: 3
depends_on:
- stage-deploy
key: e2e
agents:
queue: default
- wait
- command: echo "End of concurrency gate <--"
concurrency_group: gate
concurrency: 1
key: end-gate
agents:
queue: default
- command: echo "This and subsequent steps run independently"
depends_on: end-gate
agents:
queue: default
3 changes: 3 additions & 0 deletions .buildkite/custom_checkout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
steps:
- label: Deploy to testing
command: echo "added"
5 changes: 5 additions & 0 deletions .buildkite/dynamic_step.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- block: block step
label: ":robot_face: DO NOT manually unblock. Waiting for external service to unblock"
key: block-step
depends_on: []
blocked_state: running
10 changes: 10 additions & 0 deletions .buildkite/exit_status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- label: "-1"
command: exit -1
retry:
automatic:
- exit_status: -1 || 255
limit: 2

- label: "255"
command: exit 255
22 changes: 22 additions & 0 deletions .buildkite/freeze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
steps:
- label: Verify if freezed
command: echo "testing freeze $FREEZE"
key: "step1"

- wait: ~
continue_on_failure: true

- label: Should we freeze?
command: |
if [ $FREEZE == true ]; then
buildkite-agent annotate "Pipeline is currently under freeze, please contact your team!!"
cat <<- YAML | buildkite-agent pipeline upload

steps:
- block: ":rocket: Currently under freeze"
branches: main
YAML
fi

- label: Done
command: echo "done"
15 changes: 15 additions & 0 deletions .buildkite/hooks/bk-post-artifact
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail

echo "post-artifact hook, searching for artifact"

if [ $BUILDKITE_LABEL == ":test multi line:" ]; then
output=$(buildkite-agent artifact search testr/revisions1/foo.txt 2>&1)
status=$?
if [ $status -eq 0 ]; then
echo "Artifact found"
else
echo "Artifact not found or an error occurred"
echo "Error details: $output"
fi
fi
17 changes: 17 additions & 0 deletions .buildkite/hooks/bk-post-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail

echo "Post-command hook, searching for artifact"


if [ $BUILDKITE_LABEL == ":test multi line:" ]; then
echo "searching for artifact"
output=$(buildkite-agent artifact search testr/revisions1/foo.txt 2>&1)
status=$?
if [ $status -eq 0 ]; then
echo "Artifact found"
else
echo "Artifact not found or an error occurred"
echo "Error details: $output"
fi
fi
11 changes: 11 additions & 0 deletions .buildkite/hooks/bk-pre-exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail

echo "pre-exit hook, searching for artifact"


if [ "$BUILDKITE_LABEL" == ":test multi line:" ]; then

buildkite-agent artifact search testr/revisions1/*

fi
25 changes: 25 additions & 0 deletions .buildkite/hooks/bk-pre-exit.bk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -euo pipefail

echo "pre-exit hook, running"


pwd
ls



cd src

ls


echo "running cleanup script $BUILDKITE_STEP_KEY.sh"

chmod +x ./$BUILDKITE_STEP_KEY.sh

./$BUILDKITE_STEP_KEY.sh



echo "script called"
6 changes: 6 additions & 0 deletions .buildkite/hosted_agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- label: testing hosted agent
command: echo $(buildkite-agent secret get 'test')
key: step1
agents:
queue: hosted_agent
10 changes: 10 additions & 0 deletions .buildkite/job_dependcy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
steps:
- command: echo "$(buildkite-agent step get "label" --step "step-b")"
label: "Step A"
key: step-a
depends_on: step-b

- command: echo "step b"
label: "Step B"
key: step-b
14 changes: 14 additions & 0 deletions .buildkite/kubernetes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
steps:
- label: Hello World!
agents:
queue: kubernetes
plugins:
- kubernetes:
podSpec:
containers:
- image: alpine:latest
command: [sh, -c]
name: helloworld
args:
- "'echo Hello World!' && sleep 30"
serviceAccountName: test
15 changes: 15 additions & 0 deletions .buildkite/mono_repo_diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- label: "Triggering pipelines"
plugins:
- monorepo-diff#v1.0.1:
diff: "git diff --name-only HEAD~1"
watch:
- path: src/
config:
command: "echo Make Changes cmd with dollar"
- path:
- src/
config:
trigger: "freeze"
label: ":trigger"

4 changes: 4 additions & 0 deletions .buildkite/multi_agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
steps:
- command: "echo parallel test"
label: "Test %n"
parallelism: 5
10 changes: 10 additions & 0 deletions .buildkite/multi_line_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- label: ":test multi line:"
command: ./src/test_artifact.sh
key: test1

- label: ":test multi line:"
command: ./src/multi_line.sh
depends_on: test1
soft_fail:
- exit_status: 1
4 changes: 4 additions & 0 deletions .buildkite/oidc-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
steps:
- label: Verify oidc token
command: echo $(buildkite-agent oidc request-token --audience sts.amazonaws.com)
key: "step1"
3 changes: 3 additions & 0 deletions .buildkite/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
steps:
- label: ":construction_worker: Build"
command: docker login buildkitepackages.com -u buildkite -p $PKG_TOKEN | docker pull buildkitepackages.com/018e63f3-572a-4663-878e-259aaaf3d636/018fb786-e2a0-7212-8a41-ebfb5ddf9acf/alpine:latest
19 changes: 19 additions & 0 deletions .buildkite/per-host-concurrency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
steps:
- command: echo "Running unit tests"
key: unit-tests
agents:
queue: default
- command: echo "--> Start of concurrency gate"
concurrency_group: matchingApi/lint-test-${BUILDKITE_AGENT_NAME}
concurrency: 1
key: start-gate
depends_on: unit-tests
agents:
queue: default
- wait
- command: echo "Running deployment to staging environment"
key: stage-deploy
depends_on: start-gate
agents:
queue: default
6 changes: 6 additions & 0 deletions .buildkite/pipeline.dynamic-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- label: ":ballot_box_with_ballot:"
command: echo "hello"

- label: ":pipeline:"
command: "buildkite-agent pipeline upload .buildkite/dynamic_step.yml"
Loading