Skip to content

Commit

Permalink
Merge pull request #1223 from w3c/releases
Browse files Browse the repository at this point in the history
September 23, 2024 Production Release #2

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1222.

_Note: No version bump here_
  • Loading branch information
howard-e authored Sep 23, 2024
2 parents 0d8fad7 + fb8c341 commit 553c905
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/roles/application/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
line: 'aria-bot ALL=(ALL) NOPASSWD:{{source_dir}}/deploy/scripts/export-and-exec.sh'
validate: 'visudo -cf %s'
become: yes
when: deployment_mode == 'sandbox'
when: deployment_mode != 'development'

# TODO: these permissions changes are a workaround solution

Expand Down
8 changes: 7 additions & 1 deletion server/services/TestService.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ async function runImportScript(git_hash) {
let importScriptDirectoryPrefix = isDevelopmentProcess ? '.' : './server';
let command = `${deployDirectoryPrefix}/deploy/scripts/export-and-exec.sh ${process.env.IMPORT_CONFIG} node ${importScriptDirectoryPrefix}/scripts/import-tests/index.js`;
if (git_hash) command += ` -c ${git_hash}`;
if (process.env.ENVIRONMENT === 'sandbox') command = `sudo ${command}`;
if (
process.env.ENVIRONMENT === 'sandbox' ||
process.env.ENVIRONMENT === 'staging' ||
process.env.ENVIRONMENT === 'production'
) {
command = `sudo ${command}`;
}
exec(command, (error, stdout, stderr) => {
if (error) {
reject(error);
Expand Down

0 comments on commit 553c905

Please sign in to comment.