Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
da0cb074
Unverified
Commit
da0cb074
authored
Aug 23, 2021
by
Ivan Vandot
Committed by
GitHub
Aug 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add beekeeper_artifacts.sh (#2431)
parent
81988b16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
beekeeper_artifacts.sh
.github/bin/beekeeper_artifacts.sh
+1
-2
beekeeper.yml
.github/workflows/beekeeper.yml
+3
-1
No files found.
.github/bin/beekeeper_artifacts.sh
View file @
da0cb074
...
@@ -15,13 +15,12 @@ do
...
@@ -15,13 +15,12 @@ do
done
done
kubectl
-n
local
get pods
>
dump/kubectl_get_pods
kubectl
-n
local
get pods
>
dump/kubectl_get_pods
kubectl
-n
local
logs
-l
app.kubernetes.io/part-of
=
bee
--tail
-1
--prefix
-c
bee
>
dump/kubectl_logs
kubectl
-n
local
logs
-l
app.kubernetes.io/part-of
=
bee
--tail
-1
--prefix
-c
bee
>
dump/kubectl_logs
vertag
=
$(
tr
-dc
A-Za-z0-9 </dev/urandom |
head
-c
15
)
endpoint
=
$AWS_ENDPOINT
endpoint
=
$AWS_ENDPOINT
if
[[
"
$endpoint
"
!=
http
*
]]
if
[[
"
$endpoint
"
!=
http
*
]]
then
then
endpoint
=
https://
$endpoint
endpoint
=
https://
$endpoint
fi
fi
fname
=
artifacts_
$
vertag
.tar.gz
fname
=
artifacts_
$
{
VERTAG
}
.tar.gz
tar
-cz
dump | aws
--endpoint-url
"
$endpoint
"
s3
cp
- s3://
"
$BUCKET_NAME
"
/
"
$fname
"
tar
-cz
dump | aws
--endpoint-url
"
$endpoint
"
s3
cp
- s3://
"
$BUCKET_NAME
"
/
"
$fname
"
aws
--endpoint-url
"
$endpoint
"
s3api put-object-acl
--bucket
"
$BUCKET_NAME
"
--acl
public-read
--key
"
$fname
"
aws
--endpoint-url
"
$endpoint
"
s3api put-object-acl
--bucket
"
$BUCKET_NAME
"
--acl
public-read
--key
"
$fname
"
out
=
"== Uploaded debugging artifacts to https://
${
BUCKET_NAME
}
.
${
AWS_ENDPOINT
}
/
$fname
=="
out
=
"== Uploaded debugging artifacts to https://
${
BUCKET_NAME
}
.
${
AWS_ENDPOINT
}
/
$fname
=="
...
...
.github/workflows/beekeeper.yml
View file @
da0cb074
...
@@ -173,6 +173,8 @@ jobs:
...
@@ -173,6 +173,8 @@ jobs:
export AWS_SECRET_ACCESS_KEY=${{ secrets.DO_AWS_SECRET_ACCESS_KEY }}
export AWS_SECRET_ACCESS_KEY=${{ secrets.DO_AWS_SECRET_ACCESS_KEY }}
export AWS_EC2_METADATA_DISABLED=true
export AWS_EC2_METADATA_DISABLED=true
export AWS_ENDPOINT=fra1.digitaloceanspaces.com
export AWS_ENDPOINT=fra1.digitaloceanspaces.com
export VERTAG=$(< /dev/urandom tr -dc A-Z-a-z-0-9 2> /dev/null | head -c15)
bash .github/bin/beekeeper_artifacts.sh
export FAILED='no-test'
export FAILED='no-test'
if ${{ steps.pingpong-1.outcome=='failure' }}; then FAILED=pingpong-1; fi
if ${{ steps.pingpong-1.outcome=='failure' }}; then FAILED=pingpong-1; fi
if ${{ steps.fullconnectivity-1.outcome=='failure' }}; then FAILED=fullconnectivity-1; fi
if ${{ steps.fullconnectivity-1.outcome=='failure' }}; then FAILED=fullconnectivity-1; fi
...
@@ -189,7 +191,7 @@ jobs:
...
@@ -189,7 +191,7 @@ jobs:
if ${{ steps.pingpong-3.outcome=='failure' }}; then FAILED=pingpong-3; fi
if ${{ steps.pingpong-3.outcome=='failure' }}; then FAILED=pingpong-3; fi
if ${{ steps.gc-chunk-1.outcome=='failure' }}; then FAILED=gc-chunk-1; fi
if ${{ steps.gc-chunk-1.outcome=='failure' }}; then FAILED=gc-chunk-1; fi
KEYS=$(curl -sSf -X POST https://eu.relay.tunshell.com/api/sessions)
KEYS=$(curl -sSf -X POST https://eu.relay.tunshell.com/api/sessions)
curl -sSf -X POST -H "Content-Type: application/json" -d "{\"text\": \"**${RUN_TYPE}** Beekeeper Error\nBranch:
${{ github.head_ref }}\nStep failed:\n \`${FAILED}\`\nDebug shell:\n
\`sh <(curl -sSf https://lets.tunshell.com/init.sh) L $(echo $KEYS | jq -r .peer2_key) \${TUNSHELL_SECRET} eu.relay.tunshell.com\`\"}" https://beehive.ethswarm.org/hooks/${{ secrets.WEBHOOK_KEY }}
curl -sSf -X POST -H "Content-Type: application/json" -d "{\"text\": \"**${RUN_TYPE}** Beekeeper Error\nBranch:
\`${{ github.head_ref }}\`\nUser: @${{ github.event.pull_request.user.login }}\nDebugging artifacts: [click](https://$BUCKET_NAME.$AWS_ENDPOINT/artifacts_$VERTAG.tar.gz)\nStep failed: \`${FAILED}\`\nDebug shell:
\`sh <(curl -sSf https://lets.tunshell.com/init.sh) L $(echo $KEYS | jq -r .peer2_key) \${TUNSHELL_SECRET} eu.relay.tunshell.com\`\"}" https://beehive.ethswarm.org/hooks/${{ secrets.WEBHOOK_KEY }}
echo "run the debug shell and run the following to get debugging artifacts:"
echo "run the debug shell and run the following to get debugging artifacts:"
echo "curl -s -o debug.sh https://gist.githubusercontent.com/acud/2c219531e832aafbab51feffe5b5e91f/raw/304880f1f8cc819e577d1dd3f1f45df8709c543d/beekeeper_artifacts.sh | bash"
echo "curl -s -o debug.sh https://gist.githubusercontent.com/acud/2c219531e832aafbab51feffe5b5e91f/raw/304880f1f8cc819e577d1dd3f1f45df8709c543d/beekeeper_artifacts.sh | bash"
echo "Failed test: ${FAILED}"
echo "Failed test: ${FAILED}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment