Skip to content

Commit dc1fa56

Browse files
committed
Disable everything but the ubuntu tests
1 parent 48e01dd commit dc1fa56

File tree

4 files changed

+239
-239
lines changed

4 files changed

+239
-239
lines changed

.github/workflows/commit.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
env:
99
IROH_FORCE_STAGING_RELAYS: "1"
1010

11-
jobs:
12-
check-for-cc:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: check-for-cc
16-
id: check-for-cc
17-
uses: agenthunt/[email protected]
18-
with:
19-
pr-title-regex: "^(.+)(?:(([^)s]+)))?!?: (.+)"
11+
# jobs:
12+
# check-for-cc:
13+
# runs-on: ubuntu-latest
14+
# steps:
15+
# - name: check-for-cc
16+
# id: check-for-cc
17+
# uses: agenthunt/[email protected]
18+
# with:
19+
# pr-title-regex: "^(.+)(?:(([^)s]+)))?!?: (.+)"

.github/workflows/docs.yaml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
1-
name: Docs Preview
1+
# name: Docs Preview
22

3-
on:
4-
pull_request:
5-
workflow_dispatch:
6-
inputs:
7-
pr_number:
8-
required: true
9-
type: string
3+
# on:
4+
# pull_request:
5+
# workflow_dispatch:
6+
# inputs:
7+
# pr_number:
8+
# required: true
9+
# type: string
1010

11-
# ensure job runs sequentially so pushing to the preview branch doesn't conflict
12-
concurrency:
13-
group: ci-docs-preview
11+
# # ensure job runs sequentially so pushing to the preview branch doesn't conflict
12+
# concurrency:
13+
# group: ci-docs-preview
1414

15-
env:
16-
IROH_FORCE_STAGING_RELAYS: "1"
15+
# env:
16+
# IROH_FORCE_STAGING_RELAYS: "1"
1717

18-
jobs:
19-
preview_docs:
20-
permissions: write-all
21-
timeout-minutes: 30
22-
name: Docs preview
23-
if: ${{ (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ) && !github.event.pull_request.head.repo.fork }}
24-
runs-on: ubuntu-latest
25-
env:
26-
RUSTC_WRAPPER: "sccache"
27-
SCCACHE_GHA_ENABLED: "on"
28-
SCCACHE_CACHE_SIZE: "50G"
29-
PREVIEW_PATH: pr/${{ github.event.pull_request.number || inputs.pr_number }}/docs
18+
# jobs:
19+
# preview_docs:
20+
# permissions: write-all
21+
# timeout-minutes: 30
22+
# name: Docs preview
23+
# if: ${{ (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ) && !github.event.pull_request.head.repo.fork }}
24+
# runs-on: ubuntu-latest
25+
# env:
26+
# RUSTC_WRAPPER: "sccache"
27+
# SCCACHE_GHA_ENABLED: "on"
28+
# SCCACHE_CACHE_SIZE: "50G"
29+
# PREVIEW_PATH: pr/${{ github.event.pull_request.number || inputs.pr_number }}/docs
3030

31-
steps:
32-
- uses: actions/checkout@v4
33-
- uses: dtolnay/rust-toolchain@master
34-
with:
35-
toolchain: nightly-2024-11-30
36-
- name: Install sccache
37-
uses: mozilla-actions/[email protected]
31+
# steps:
32+
# - uses: actions/checkout@v4
33+
# - uses: dtolnay/rust-toolchain@master
34+
# with:
35+
# toolchain: nightly-2024-11-30
36+
# - name: Install sccache
37+
# uses: mozilla-actions/[email protected]
3838

39-
- name: Generate Docs
40-
run: cargo doc --workspace --all-features --no-deps
41-
env:
42-
RUSTDOCFLAGS: --cfg iroh_docsrs
39+
# - name: Generate Docs
40+
# run: cargo doc --workspace --all-features --no-deps
41+
# env:
42+
# RUSTDOCFLAGS: --cfg iroh_docsrs
4343

44-
- name: Deploy Docs to Preview Branch
45-
uses: peaceiris/actions-gh-pages@v4
46-
with:
47-
github_token: ${{ secrets.GITHUB_TOKEN }}
48-
publish_dir: ./target/doc/
49-
destination_dir: ${{ env.PREVIEW_PATH }}
50-
publish_branch: generated-docs-preview
44+
# - name: Deploy Docs to Preview Branch
45+
# uses: peaceiris/actions-gh-pages@v4
46+
# with:
47+
# github_token: ${{ secrets.GITHUB_TOKEN }}
48+
# publish_dir: ./target/doc/
49+
# destination_dir: ${{ env.PREVIEW_PATH }}
50+
# publish_branch: generated-docs-preview
5151

52-
- name: Find Docs Comment
53-
uses: peter-evans/find-comment@v3
54-
id: fc
55-
with:
56-
issue-number: ${{ github.event.pull_request.number || inputs.pr_number }}
57-
comment-author: 'github-actions[bot]'
58-
body-includes: Documentation for this PR has been generated
52+
# - name: Find Docs Comment
53+
# uses: peter-evans/find-comment@v3
54+
# id: fc
55+
# with:
56+
# issue-number: ${{ github.event.pull_request.number || inputs.pr_number }}
57+
# comment-author: 'github-actions[bot]'
58+
# body-includes: Documentation for this PR has been generated
5959

60-
- name: Get current timestamp
61-
id: get_timestamp
62-
run: echo "TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
60+
# - name: Get current timestamp
61+
# id: get_timestamp
62+
# run: echo "TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
6363

64-
- name: Create or Update Docs Comment
65-
uses: peter-evans/create-or-update-comment@v4
66-
with:
67-
issue-number: ${{ github.event.pull_request.number || inputs.pr_number }}
68-
comment-id: ${{ steps.fc.outputs.comment-id }}
69-
body: |
70-
Documentation for this PR has been generated and is available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.PREVIEW_PATH }}/iroh_blobs/
64+
# - name: Create or Update Docs Comment
65+
# uses: peter-evans/create-or-update-comment@v4
66+
# with:
67+
# issue-number: ${{ github.event.pull_request.number || inputs.pr_number }}
68+
# comment-id: ${{ steps.fc.outputs.comment-id }}
69+
# body: |
70+
# Documentation for this PR has been generated and is available at: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.PREVIEW_PATH }}/iroh_blobs/
7171

72-
Last updated: ${{ env.TIMESTAMP }}
73-
edit-mode: replace
72+
# Last updated: ${{ env.TIMESTAMP }}
73+
# edit-mode: replace

.github/workflows/flaky.yaml

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,99 @@
1-
# Run all tests, including flaky test.
2-
#
3-
# The default CI workflow ignores flaky tests. This workflow will run
4-
# all tests, including ignored ones.
5-
#
6-
# To use this workflow you can either:
7-
#
8-
# - Label a PR with "flaky-test", the normal CI workflow will not run
9-
# any jobs but the jobs here will be run. Note that to merge the PR
10-
# you'll need to remove the label eventually because the normal CI
11-
# jobs are required by branch protection.
12-
#
13-
# - Manually trigger the workflow, you may choose a branch for this to
14-
# run on.
15-
#
16-
# Additionally this jobs runs once a day on a schedule.
17-
#
18-
# Currently doctests are not run by this workflow.
1+
# # Run all tests, including flaky test.
2+
# #
3+
# # The default CI workflow ignores flaky tests. This workflow will run
4+
# # all tests, including ignored ones.
5+
# #
6+
# # To use this workflow you can either:
7+
# #
8+
# # - Label a PR with "flaky-test", the normal CI workflow will not run
9+
# # any jobs but the jobs here will be run. Note that to merge the PR
10+
# # you'll need to remove the label eventually because the normal CI
11+
# # jobs are required by branch protection.
12+
# #
13+
# # - Manually trigger the workflow, you may choose a branch for this to
14+
# # run on.
15+
# #
16+
# # Additionally this jobs runs once a day on a schedule.
17+
# #
18+
# # Currently doctests are not run by this workflow.
1919

20-
name: Flaky CI
20+
# name: Flaky CI
2121

22-
on:
23-
pull_request:
24-
types: [ 'labeled', 'unlabeled', 'opened', 'synchronize', 'reopened' ]
25-
schedule:
26-
# 06:30 UTC every day
27-
- cron: '30 6 * * *'
28-
workflow_dispatch:
29-
inputs:
30-
branch:
31-
description: 'Branch to run on, defaults to main'
32-
required: true
33-
default: 'main'
34-
type: string
22+
# on:
23+
# pull_request:
24+
# types: [ 'labeled', 'unlabeled', 'opened', 'synchronize', 'reopened' ]
25+
# schedule:
26+
# # 06:30 UTC every day
27+
# - cron: '30 6 * * *'
28+
# workflow_dispatch:
29+
# inputs:
30+
# branch:
31+
# description: 'Branch to run on, defaults to main'
32+
# required: true
33+
# default: 'main'
34+
# type: string
3535

36-
concurrency:
37-
group: flaky-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
38-
cancel-in-progress: true
36+
# concurrency:
37+
# group: flaky-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
38+
# cancel-in-progress: true
3939

40-
env:
41-
IROH_FORCE_STAGING_RELAYS: "1"
40+
# env:
41+
# IROH_FORCE_STAGING_RELAYS: "1"
4242

43-
jobs:
44-
tests:
45-
if: "contains(github.event.pull_request.labels.*.name, 'flaky-test') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'"
46-
uses: './.github/workflows/tests.yaml'
47-
with:
48-
flaky: true
49-
git-ref: ${{ inputs.branch }}
50-
notify:
51-
needs: tests
52-
if: ${{ always() }}
53-
runs-on: ubuntu-latest
54-
steps:
55-
- name: Extract test results
56-
run: |
57-
printf '${{ toJSON(needs) }}\n'
58-
result=$(echo '${{ toJSON(needs) }}' | jq -r .tests.result)
59-
echo TESTS_RESULT=$result
60-
echo "TESTS_RESULT=$result" >>"$GITHUB_ENV"
61-
- name: download nextest reports
62-
uses: actions/download-artifact@v4
63-
with:
64-
pattern: libtest_run_${{ github.run_number }}-${{ github.run_attempt }}-*
65-
merge-multiple: true
66-
path: nextest-results
67-
- name: create summary report
68-
id: make_summary
69-
run: |
70-
# prevent the glob expression in the loop to match on itself when the dir is empty
71-
shopt -s nullglob
72-
# to deal with multiline outputs it's recommended to use a random EOF, the syntax is based on
73-
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
74-
EOF=aP51VriWCxNJ1JjvmO9i
75-
echo "summary<<$EOF" >> $GITHUB_OUTPUT
76-
echo "Flaky tests failure:" >> $GITHUB_OUTPUT
77-
echo " " >> $GITHUB_OUTPUT
78-
for report in nextest-results/*.json; do
79-
# remove the name prefix and extension, and split the parts
80-
name=$(echo ${report:16:-5} | tr _ ' ')
81-
echo $name
82-
echo "- **$name**" >> $GITHUB_OUTPUT
83-
# select the failed tests
84-
# the tests have this format "crate::module$test_name", the sed expressions remove the quotes and replace $ for ::
85-
failure=$(jq --slurp '.[] | select(.["type"] == "test" and .["event"] == "failed" ) | .["name"]' $report | sed -e 's/^"//g' -e 's/\$/::/' -e 's/"//')
86-
echo "$failure"
87-
echo "$failure" >> $GITHUB_OUTPUT
88-
done
89-
echo "" >> $GITHUB_OUTPUT
90-
echo "See https://github.com/${{ github.repository }}/actions/workflows/flaky.yaml" >> $GITHUB_OUTPUT
91-
echo "$EOF" >> $GITHUB_OUTPUT
92-
- name: Notify discord on failure
93-
uses: n0-computer/discord-webhook-notify@v1
94-
if: ${{ env.TESTS_RESULT == 'failure' || env.TESTS_RESULT == 'success' }}
95-
with:
96-
text: "Flaky tests in **${{ github.repository }}**:"
97-
severity: ${{ env.TESTS_RESULT == 'failure' && 'warn' || 'info' }}
98-
details: ${{ env.TESTS_RESULT == 'failure' && steps.make_summary.outputs.summary || 'No flaky failures!' }}
99-
webhookUrl: ${{ secrets.DISCORD_N0_GITHUB_CHANNEL_WEBHOOK_URL }}
43+
# jobs:
44+
# tests:
45+
# if: "contains(github.event.pull_request.labels.*.name, 'flaky-test') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'"
46+
# uses: './.github/workflows/tests.yaml'
47+
# with:
48+
# flaky: true
49+
# git-ref: ${{ inputs.branch }}
50+
# notify:
51+
# needs: tests
52+
# if: ${{ always() }}
53+
# runs-on: ubuntu-latest
54+
# steps:
55+
# - name: Extract test results
56+
# run: |
57+
# printf '${{ toJSON(needs) }}\n'
58+
# result=$(echo '${{ toJSON(needs) }}' | jq -r .tests.result)
59+
# echo TESTS_RESULT=$result
60+
# echo "TESTS_RESULT=$result" >>"$GITHUB_ENV"
61+
# - name: download nextest reports
62+
# uses: actions/download-artifact@v4
63+
# with:
64+
# pattern: libtest_run_${{ github.run_number }}-${{ github.run_attempt }}-*
65+
# merge-multiple: true
66+
# path: nextest-results
67+
# - name: create summary report
68+
# id: make_summary
69+
# run: |
70+
# # prevent the glob expression in the loop to match on itself when the dir is empty
71+
# shopt -s nullglob
72+
# # to deal with multiline outputs it's recommended to use a random EOF, the syntax is based on
73+
# # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
74+
# EOF=aP51VriWCxNJ1JjvmO9i
75+
# echo "summary<<$EOF" >> $GITHUB_OUTPUT
76+
# echo "Flaky tests failure:" >> $GITHUB_OUTPUT
77+
# echo " " >> $GITHUB_OUTPUT
78+
# for report in nextest-results/*.json; do
79+
# # remove the name prefix and extension, and split the parts
80+
# name=$(echo ${report:16:-5} | tr _ ' ')
81+
# echo $name
82+
# echo "- **$name**" >> $GITHUB_OUTPUT
83+
# # select the failed tests
84+
# # the tests have this format "crate::module$test_name", the sed expressions remove the quotes and replace $ for ::
85+
# failure=$(jq --slurp '.[] | select(.["type"] == "test" and .["event"] == "failed" ) | .["name"]' $report | sed -e 's/^"//g' -e 's/\$/::/' -e 's/"//')
86+
# echo "$failure"
87+
# echo "$failure" >> $GITHUB_OUTPUT
88+
# done
89+
# echo "" >> $GITHUB_OUTPUT
90+
# echo "See https://github.com/${{ github.repository }}/actions/workflows/flaky.yaml" >> $GITHUB_OUTPUT
91+
# echo "$EOF" >> $GITHUB_OUTPUT
92+
# - name: Notify discord on failure
93+
# uses: n0-computer/discord-webhook-notify@v1
94+
# if: ${{ env.TESTS_RESULT == 'failure' || env.TESTS_RESULT == 'success' }}
95+
# with:
96+
# text: "Flaky tests in **${{ github.repository }}**:"
97+
# severity: ${{ env.TESTS_RESULT == 'failure' && 'warn' || 'info' }}
98+
# details: ${{ env.TESTS_RESULT == 'failure' && steps.make_summary.outputs.summary || 'No flaky failures!' }}
99+
# webhookUrl: ${{ secrets.DISCORD_N0_GITHUB_CHANNEL_WEBHOOK_URL }}

0 commit comments

Comments
 (0)