Skip to content

Commit

Permalink
Merge pull request #5384 from dfe-analytical-services/dev
Browse files Browse the repository at this point in the history
Merge Dev into Master
  • Loading branch information
N-moh authored Nov 11, 2024
2 parents 8cc159f + 5d66047 commit 37b5433
Show file tree
Hide file tree
Showing 134 changed files with 4,323 additions and 2,077 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/notify-expired-api-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Notify expired API docs
on:
schedule:
- cron: '5 12 * * 1-5' # 12:05 UTC, Monday to Friday
workflow_dispatch:
inputs:
dry_run:
description: Dry run (does not send Slack notification)
required: false
default: true
type: boolean

jobs:
slack-notification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: src/explore-education-statistics-api-docs

- name: Notify expired docs
working-directory: src/explore-education-statistics-api-docs
run: bundle exec rake notify:expired
env:
HOST_URL: ${{ vars.API_DOCS_URL }}
REALLY_POST_TO_SLACK: ${{ (github.event_name == 'schedule') && 1 || (github.event.inputs.dry_run == 'false') && 1 || 0 }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERTS_WEBHOOK_URL }}
OVERRIDE_SLACK_MESSAGE_PREFIX: Please ensure that the Public API documentation is up to date.
8 changes: 4 additions & 4 deletions .github/workflows/validate-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ on:
schedule:
# Actions are scheduled in UTC
# Until Actions supports timezones, we need to update this cron
# twice a year (at the start and end of daylight saving time)
# twice a year (at the start and end of daylight saving time)
# to account for daylight saving time in the UK.
# Set a new reminder in the slack channel for next time to
# Set a new reminder in the slack channel for next time to
# change this
# This action is intended to run at 9:35AM, 12:35PM & 4:35PM
# March to October - cron: '35 8,11,15 * * 1-5'
- cron: '35 9,12,16 * * 1-5'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SNAPSHOTS_WEBHOOK_URL }}
PYTHON_VERSION: 3.10.10

jobs:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
if: ${{ always() && (needs.test.result == 'failure' || needs.test.result == 'timed_out') }}
needs:
- test

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,13 @@ assert that AOP code is executed only once.
#### Configuring Linux for running unit and integration tests
Due to the resource requirements of the integration tests, Linux users need to ensure that the system running the tests
is capable of doing so. The `max_user_watches` setting must be set to a high enough limit, for example by running:
is capable of doing so. The `max_user_watches` and `max_user_instances` settings must be set to a high enough limit,
for example by running:
```sh
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
```
### Resetting Azurite
Expand Down
Loading

0 comments on commit 37b5433

Please sign in to comment.