Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 9 additions & 9 deletions .github/workflows/slow_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
name: Start self-hosted EC2 runner
runs-on: ubuntu-20.04
env:
AWS_REGION: us-east-1
EC2_AMI_ID: ami-0a54664633b809ed5
AWS_REGION: us-west-2
EC2_AMI_ID: ami-0a20beab46db1fdb6
EC2_INSTANCE_TYPE: dl1.24xlarge
EC2_SUBNET_ID: subnet-b7533b96
EC2_SECURITY_GROUP: sg-02677bbf33275aa0e
EC2_SUBNET_ID: subnet-452c913d
EC2_SECURITY_GROUP: sg-0472192d4db070348
outputs:
label: ${{ steps.start-ec2-runner.outputs.label }}
ec2-instance-id: ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
needs: start-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
env:
AWS_REGION: us-east-1
AWS_REGION: us-west-2
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -76,7 +76,7 @@ jobs:
- example-diff # run the job when the previous test job is done
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
env:
AWS_REGION: us-east-1
AWS_REGION: us-west-2
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- multi-card # run the job when the previous test jobs are done
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
env:
AWS_REGION: us-east-1
AWS_REGION: us-west-2
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
- single-card # run the job when the previous test jobs are done
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
env:
AWS_REGION: us-east-1
AWS_REGION: us-west-2
steps:
- name: Checkout
if: github.event.schedule == '0 23 * * 6'
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
- albert-xxl-single-card
runs-on: ubuntu-20.04
env:
AWS_REGION: us-east-1
AWS_REGION: us-west-2
if: ${{ always() }} # required to stop the runner even if the error happened in the previous jobs
steps:
- name: Configure AWS credentials
Expand Down
12 changes: 6 additions & 6 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def assert_no_regression(self, results: Dict, baseline: Dict):
self.assertGreaterEqual(
number_asserted_metrics,
2,
f"{number_asserted_metrics} asserted metric while at least 2 are expected (training time + accuracy). Metrics to assert: {self.REGRESSION_METRICS.keys()}. Metrics received: {baseline.keys()}",
f"{number_asserted_metrics} asserted metric while at least 2 are expected (training time + accuracy)."
f" Metrics to assert: {self.REGRESSION_METRICS.keys()}. Metrics received: {baseline.keys()}",
)


Expand Down Expand Up @@ -326,8 +327,7 @@ class MultiCardLanguageModelingExampleTester(
TASK_NAME = "wikitext"


# TODO: uncomment when CI is moved from AWS
# class MultiCardSummarizationExampleTester(
# ExampleTesterBase, metaclass=ExampleTestMeta, example_name="run_summarization", multi_card=True
# ):
# TASK_NAME = "cnn_dailymail"
class MultiCardSummarizationExampleTester(
ExampleTesterBase, metaclass=ExampleTestMeta, example_name="run_summarization", multi_card=True
):
TASK_NAME = "cnn_dailymail"