Skip to content

Commit ca9a828

Browse files
committed
Merge branch 'awslabs-main'
2 parents 45b3d22 + fa007f0 commit ca9a828

File tree

93 files changed

+7805
-828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+7805
-828
lines changed

.builder/actions/aws_crt_python.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ def run(self, env):
2929

3030
# Enable S3 tests
3131
env.shell.setenv('AWS_TEST_S3', '1')
32+
env.shell.setenv('AWS_TEST_LOCALHOST', '1')
3233

3334
actions = [
35+
[self.python, '--version'],
3436
[self.python, '-m', 'pip', 'install', '--upgrade', 'pip'],
35-
[self.python, '-m', 'pip', 'install', '--upgrade', '--requirement', 'requirements-dev.txt'],
3637
Builder.SetupCrossCICrtEnvironment(),
37-
[self.python, '-m', 'pip', 'install', '--verbose', '.'],
38+
[self.python, '-m', 'pip', 'install', '--verbose', '.[dev]'],
3839
# "--failfast" because, given how our leak-detection in tests currently works,
3940
# once one test fails all the rest usually fail too.
4041
[self.python, '-m', 'unittest', 'discover', '--verbose', '--failfast'],

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ body:
1212
description: What is the problem? A clear and concise description of the bug.
1313
validations:
1414
required: true
15+
- type: checkboxes
16+
id: regression
17+
attributes:
18+
label: Regression Issue
19+
description: What is a regression? If it worked in a previous version but doesn't in the latest version, it's considered a regression. In this case, please provide specific version number in the report.
20+
options:
21+
- label: Select this option if this issue appears to be a regression.
22+
required: false
1523
- type: textarea
1624
id: expected
1725
attributes:

.github/workflows/ci.yml

Lines changed: 213 additions & 88 deletions
Large diffs are not rendered by default.

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
update-docs-branch:
12-
runs-on: ubuntu-22.04 # latest
12+
runs-on: ubuntu-22.04 # getting errors from sphinx using ubuntu-24.04, so stuck on 22.04 till we diagnose it
1313
permissions:
1414
contents: write # allow push
1515
steps:
@@ -20,8 +20,8 @@ jobs:
2020

2121
- name: Update docs branch
2222
run: |
23-
python3 -m pip install -r requirements-dev.txt
24-
python3 -m pip install --verbose .
23+
python3 -m pip install --upgrade pip
24+
python3 -m pip install --verbose ".[dev]"
2525
./scripts/make-docs.py
2626
2727
- name: Commit

.github/workflows/handle-stale-discussions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: HandleStaleDiscussions
22
on:
33
schedule:
4-
- cron: '0 */4 * * *'
4+
- cron: '0 9 * * 1' # minute hour dom month dow
55
discussion_comment:
66
types: [created]
77

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Apply potential regression label on issues
2+
name: issue-regression-label
3+
on:
4+
issues:
5+
types: [opened, edited]
6+
jobs:
7+
add-regression-label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
steps:
12+
- name: Fetch template body
13+
id: check_regression
14+
uses: actions/github-script@v7
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
TEMPLATE_BODY: ${{ github.event.issue.body }}
18+
with:
19+
script: |
20+
const regressionPattern = /\[x\] Select this option if this issue appears to be a regression\./i;
21+
const template = `${process.env.TEMPLATE_BODY}`
22+
const match = regressionPattern.test(template);
23+
core.setOutput('is_regression', match);
24+
- name: Manage regression label
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then
29+
gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }}
30+
else
31+
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
32+
fi

.github/workflows/lint.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,19 @@ on:
77
- 'docs'
88

99
jobs:
10-
clang-format:
11-
10+
lint:
1211
runs-on: ubuntu-24.04 # latest
1312

14-
steps:
15-
- name: Checkout Sources
16-
uses: actions/checkout@v4
17-
18-
- name: clang-format lint
19-
run: |
20-
./format-check.py
21-
22-
autopep8:
23-
runs-on: ubuntu-20.04 # latest
24-
2513
steps:
2614
- name: Checkout Source
2715
uses: actions/checkout@v4
2816

29-
- name: Build and Test
17+
- name: Format and Check Diff
18+
# run formatting script, which edits files in place
19+
# then do `git diff` to show what changed (if anything)
20+
# then do `git diff --quiet` to fail if anything changed
3021
run: |
31-
python3 -m pip install --upgrade setuptools
32-
python3 -m pip install --upgrade wheel
3322
python3 -m pip install --upgrade autopep8
34-
python3 -m autopep8 --exit-code --diff --recursive awscrt test .builder setup.py
23+
python3 scripts/format-all.py
24+
git diff
25+
git diff --quiet

.github/workflows/stale_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Close stale issues"
33
# Controls when the action will run.
44
on:
55
schedule:
6-
- cron: "*/60 * * * *"
6+
- cron: '0 9 * * 1' # minute hour dom month dow
77

88
jobs:
99
cleanup:

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,7 @@ poetry.toml
386386
pyrightconfig.json
387387

388388
### VisualStudioCode ###
389-
.vscode/*
390-
!.vscode/settings.json
391-
!.vscode/tasks.json
392-
!.vscode/launch.json
393-
!.vscode/extensions.json
394-
!.vscode/*.code-snippets
389+
.vscode
395390

396391
# Local History for Visual Studio Code
397392
.history/

.lgtm.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)