diff --git a/.github/workflows/auto-patch-release.yml b/.github/workflows/auto-patch-release.yml new file mode 100644 index 00000000..439a3ab6 --- /dev/null +++ b/.github/workflows/auto-patch-release.yml @@ -0,0 +1,13 @@ +name: Automatically create patch release every 2 weeks +on: + schedule: + # Run every Friday right before midnight + - cron: '59 23 * * 5' +jobs: + create_patch_release: + uses: dequelabs/axe-api-team/.github/workflows/auto-patch-release.yml + secrets: inherit + with: + release-command: npx standard-version --release-as=patch + release-branch: master + default-branch: develop diff --git a/packages/axe-core-api/e2e/selenium/spec/api_spec.rb b/packages/axe-core-api/e2e/selenium/spec/api_spec.rb index cd3a9d97..d6ede5b9 100644 --- a/packages/axe-core-api/e2e/selenium/spec/api_spec.rb +++ b/packages/axe-core-api/e2e/selenium/spec/api_spec.rb @@ -6,6 +6,8 @@ options = Selenium::WebDriver::Chrome::Options.new # options.add_argument('--headless') +options.add_argument('--no-sandbox') +options.add_argument('--disable-dev-shm-usage') $driver = Selenium::WebDriver.for :chrome, options: options Run = Axe::API::Run diff --git a/packages/axe-core-api/lib/axe/api/run.rb b/packages/axe-core-api/lib/axe/api/run.rb index 6949f306..e3e66dac 100644 --- a/packages/axe-core-api/lib/axe/api/run.rb +++ b/packages/axe-core-api/lib/axe/api/run.rb @@ -37,7 +37,7 @@ def analyze_post_43x(page, lib) throw partial_results if partial_results.respond_to?("key?") and partial_results.key?("errorMessage") results = within_about_blank_context(page) { |page| partial_res_str = partial_results.to_json - size_limit = 20_000_000 + size_limit = 10_000_000 while not partial_res_str.empty? do chunk_size = size_limit chunk_size = partial_res_str.length if chunk_size > partial_res_str.length