fix up mergequeue and ci (#21)
* fix up mergequeue and ci * rename ci job * spacing out triggers? * fix ci script * fixing up test runner
This commit is contained in:
parent
ef6ca8583a
commit
1752d1117f
2
.github/actions/publish-website/action.yml
vendored
2
.github/actions/publish-website/action.yml
vendored
@ -23,7 +23,7 @@ runs:
|
|||||||
uses: aws-actions/configure-aws-credentials@v2
|
uses: aws-actions/configure-aws-credentials@v2
|
||||||
with:
|
with:
|
||||||
role-to-assume: ${{ inputs.aws-iam-role }}
|
role-to-assume: ${{ inputs.aws-iam-role }}
|
||||||
role-session-name: integration-testing
|
role-session-name: canario-integration-testing
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
- name: Add rotbots.txt
|
- name: Add rotbots.txt
|
||||||
|
|||||||
86
.github/actions/teams-message/action.yml
vendored
86
.github/actions/teams-message/action.yml
vendored
@ -43,49 +43,49 @@ runs:
|
|||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"type":"message",
|
"type":"message",
|
||||||
"attachments":[
|
"attachments":[
|
||||||
{
|
{
|
||||||
"contentType":"application/vnd.microsoft.card.adaptive",
|
"contentType":"application/vnd.microsoft.card.adaptive",
|
||||||
"contentUrl":null,
|
"contentUrl":null,
|
||||||
"content":{
|
"content":{
|
||||||
"$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
|
"$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
|
||||||
"type":"AdaptiveCard",
|
"type":"AdaptiveCard",
|
||||||
"body": [
|
"body": [
|
||||||
{
|
{
|
||||||
"type": "TextBlock",
|
"type": "TextBlock",
|
||||||
"size": "Medium",
|
"size": "Medium",
|
||||||
"weight": "Bolder",
|
"weight": "Bolder",
|
||||||
"text": "${{ inputs.msg }}",
|
"text": "Canario - ${{ inputs.msg }}",
|
||||||
"color": "Attention"
|
"color": "Attention"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "TextBlock",
|
"type": "TextBlock",
|
||||||
"text": "${{ env.JOB }} :: ${{ env.STEP }}",
|
"text": "${{ env.JOB }} :: ${{ env.STEP }}",
|
||||||
"wrap": true
|
"wrap": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"actions": [
|
"actions": [
|
||||||
{
|
{
|
||||||
"type": "Action.OpenUrl",
|
"type": "Action.OpenUrl",
|
||||||
"title": "Action",
|
"title": "Action",
|
||||||
"url": "${{ env.LOGS }}"
|
"url": "${{ env.LOGS }}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "Action.OpenUrl",
|
"type": "Action.OpenUrl",
|
||||||
"title": "Commit",
|
"title": "Commit",
|
||||||
"url": "${{ env.COMMIT }}"
|
"url": "${{ env.COMMIT }}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "Action.OpenUrl",
|
"type": "Action.OpenUrl",
|
||||||
"title": "Ref",
|
"title": "Ref",
|
||||||
"url": "${{ env.REF }}"
|
"url": "${{ env.REF }}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
||||||
"version": "1.5"
|
"version": "1.5"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
|
]
|
||||||
}' \
|
}' \
|
||||||
${{ inputs.teams_url }}
|
${{ inputs.teams_url }}
|
||||||
|
|||||||
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -1,15 +1,15 @@
|
|||||||
name: Build/Release Corso
|
name: Build Canario
|
||||||
env:
|
# holdover from corso
|
||||||
IMAGE_NAME: ghcr.io/alcionai/canario
|
# canario should not build any images
|
||||||
|
#env:
|
||||||
|
# IMAGE_NAME: ghcr.io/alcionai/canario
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
merge_group:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
tags: ["v*.*.*"]
|
tags: ["v*.*.*"]
|
||||||
|
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [ok-to-test-command]
|
types: [ok-to-test-command]
|
||||||
|
|
||||||
@ -101,7 +101,22 @@ jobs:
|
|||||||
echo "website-cfid=ESFTEIYTIP7Y3" | tee -a $GITHUB_OUTPUT
|
echo "website-cfid=ESFTEIYTIP7Y3" | tee -a $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Seeing-Things:
|
||||||
|
environment: Testing
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: echo "github.ref"
|
||||||
|
- shell: bash
|
||||||
|
run: echo ${{ github.ref }}
|
||||||
|
- shell: bash
|
||||||
|
run: echo "github.event.merge_queue.head.repo.full_name"
|
||||||
|
- shell: bash
|
||||||
|
run: echo ${{ github.event.merge_queue.head.repo.full_name }}
|
||||||
|
- shell: bash
|
||||||
|
run: echo "github.repository"
|
||||||
|
- shell: bash
|
||||||
|
run: echo ${{ github.repository }}
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
# --- Website Linting -----------------------------------------------------------------------------------
|
# --- Website Linting -----------------------------------------------------------------------------------
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
@ -130,7 +145,16 @@ jobs:
|
|||||||
environment: Testing
|
environment: Testing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
if: (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') || (needs.precheck.outputs.srcfileschanged == 'true' && github.event.pull_request.head.repo.full_name == github.repository)
|
if: |
|
||||||
|
(
|
||||||
|
startsWith(github.ref, 'refs/tags/')
|
||||||
|
|| github.ref == 'refs/heads/gh-readonly-queue/main'
|
||||||
|
|| github.ref == 'refs/heads/main'
|
||||||
|
)
|
||||||
|
|| (
|
||||||
|
needs.precheck.outputs.srcfileschanged == 'true'
|
||||||
|
&& github.event.pull_request.head.repo.full_name == github.repository
|
||||||
|
)
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: src
|
working-directory: src
|
||||||
@ -160,7 +184,7 @@ jobs:
|
|||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
with:
|
with:
|
||||||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
||||||
role-session-name: integration-testing
|
role-session-name: canario-integration-testing
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
# run the tests
|
# run the tests
|
||||||
@ -231,7 +255,7 @@ jobs:
|
|||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
with:
|
with:
|
||||||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
||||||
role-session-name: integration-testing
|
role-session-name: canario-integration-testing
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
# run the tests
|
# run the tests
|
||||||
@ -325,7 +349,9 @@ jobs:
|
|||||||
Test-Suite-Fork:
|
Test-Suite-Fork:
|
||||||
needs: [Precheck]
|
needs: [Precheck]
|
||||||
environment: Testing
|
environment: Testing
|
||||||
if: (!startsWith(github.ref , 'refs/tags/') && github.ref != 'refs/heads/main') && (needs.precheck.outputs.srcfileschanged == 'true' && github.event.pull_request.head.repo.full_name != github.repository)
|
# test-suite-fork is a corso build artifact.
|
||||||
|
if: false
|
||||||
|
# if: (!startsWith(github.ref , 'refs/tags/') && github.ref != 'refs/heads/main') && (needs.precheck.outputs.srcfileschanged == 'true' && github.event.pull_request.head.repo.full_name != github.repository)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@ -380,7 +406,7 @@ jobs:
|
|||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
with:
|
with:
|
||||||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
||||||
role-session-name: integration-testing
|
role-session-name: canario-integration-testing
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
# run the tests
|
# run the tests
|
||||||
|
|||||||
22
.github/workflows/ci_test_cleanup.yml
vendored
22
.github/workflows/ci_test_cleanup.yml
vendored
@ -1,13 +1,23 @@
|
|||||||
name: CI Test Cleanup
|
name: CI Test Cleanup
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
# neither of the jobs are currently running (corso already runs them),
|
||||||
schedule:
|
# so this action is turned off until we decide it's needed.
|
||||||
# every half hour
|
# workflow_dispatch:
|
||||||
- cron: "*/30 * * * *"
|
# schedule:
|
||||||
|
# every half hour
|
||||||
|
# - cron: "*/30 * * * *"
|
||||||
|
#
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
does-not-exist-this-forces-the-action-to-not-run
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Test-User-Data-Cleanup:
|
Test-User-Data-Cleanup:
|
||||||
environment: Testing
|
environment: Testing
|
||||||
|
# forced off - this is already running in corso
|
||||||
|
# we may need to turn this back on if we elect different
|
||||||
|
# test users compared to the corso repo
|
||||||
|
if: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
@ -43,6 +53,10 @@ jobs:
|
|||||||
|
|
||||||
Test-Site-Data-Cleanup:
|
Test-Site-Data-Cleanup:
|
||||||
environment: Testing
|
environment: Testing
|
||||||
|
# forced off - this is already running in corso
|
||||||
|
# we may need to turn this back on if we elect different
|
||||||
|
# test users compared to the corso repo
|
||||||
|
if: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
5
.github/workflows/longevity_test.yml
vendored
5
.github/workflows/longevity_test.yml
vendored
@ -76,8 +76,7 @@ jobs:
|
|||||||
git checkout ${{ steps.version.outputs.version }}
|
git checkout ${{ steps.version.outputs.version }}
|
||||||
git checkout ${{ github.ref }} -- .github
|
git checkout ${{ github.ref }} -- .github
|
||||||
|
|
||||||
- run:
|
- run: go build -o canario
|
||||||
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
- run: mkdir ${CORSO_LOG_DIR}
|
- run: mkdir ${CORSO_LOG_DIR}
|
||||||
@ -89,7 +88,7 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
with:
|
with:
|
||||||
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
|
||||||
role-session-name: integration-testing
|
role-session-name: canario-integration-testing
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
5
.github/workflows/nightly_test.yml
vendored
5
.github/workflows/nightly_test.yml
vendored
@ -3,8 +3,9 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
# Run every day at 04:00 GMT (roughly 8pm PST)
|
# Run every day at 06:00 GMT (roughly 10pm PST)
|
||||||
- cron: "0 4 * * *"
|
# corso runs at 04:00 GMT, this is slightly offset to avoid conflicts.
|
||||||
|
- cron: "0 6 * * *"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# required to retrieve AWS credentials
|
# required to retrieve AWS credentials
|
||||||
|
|||||||
6
.github/workflows/website-publish.yml
vendored
6
.github/workflows/website-publish.yml
vendored
@ -1,6 +1,10 @@
|
|||||||
name: Publish website
|
name: Publish website
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
# workflow_dispatch:
|
||||||
|
# turned off for now, since canario should not publish the website
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
does-not-exist-this-forces-the-action-to-not-run
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# required to retrieve AWS credentials
|
# required to retrieve AWS credentials
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user