Deal with Carp being sloooooooow
This commit is contained in:
parent
41272fc6d7
commit
9a89d1a14a
|
@ -123,7 +123,7 @@ class Test {
|
||||||
timeout = setTimeout(() => {
|
timeout = setTimeout(() => {
|
||||||
this.timedOut = true;
|
this.timedOut = true;
|
||||||
this.handleUpdate();
|
this.handleUpdate();
|
||||||
}, TIMEOUT * 1000 * PATIENCE);
|
}, TIMEOUT * 1000 * PATIENCE * (this.config.timeoutFactor || 1));
|
||||||
await session.setup();
|
await session.setup();
|
||||||
switch (this.type) {
|
switch (this.type) {
|
||||||
case "ensure":
|
case "ensure":
|
||||||
|
|
|
@ -45,3 +45,5 @@ run: |
|
||||||
scope:
|
scope:
|
||||||
code: |
|
code: |
|
||||||
(def x (* 123 234))
|
(def x (* 123 234))
|
||||||
|
|
||||||
|
timeoutFactor: 4
|
||||||
|
|
|
@ -961,6 +961,18 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
|
|
||||||
|
timeoutFactor:
|
||||||
|
title: "Per-language multiplier for test timeouts"
|
||||||
|
description: |
|
||||||
|
Some languages are slow. To account for this, Riju's test
|
||||||
|
timeouts are fairly forgiving. However, some languages are not
|
||||||
|
just slow but absolutely GLACIAL. To deal with these, you can
|
||||||
|
specify 'timeoutFactor' as an integer multiplier for the test
|
||||||
|
timeout (default or user-supplied) that would otherwise be used
|
||||||
|
for the language.
|
||||||
|
type: integer
|
||||||
|
minimum: 1
|
||||||
|
default: 1
|
||||||
skip:
|
skip:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
|
@ -55,13 +55,13 @@ sudo mv /tmp/riju.service /tmp/riju.slice /etc/systemd/system/
|
||||||
sudo mv /tmp/cloudwatch.json /opt/aws/amazon-cloudwatch-agent/bin/config.json
|
sudo mv /tmp/cloudwatch.json /opt/aws/amazon-cloudwatch-agent/bin/config.json
|
||||||
sudo mv /tmp/riju-init-volume /tmp/riju-supervisor /usr/local/bin/
|
sudo mv /tmp/riju-init-volume /tmp/riju-supervisor /usr/local/bin/
|
||||||
|
|
||||||
sudo sed -Ei 's/^#?PermitRootLogin .*/PermitRootLogin no/' /etc/ssh/sshd_config
|
sudo sed -Ei 's|^#?PermitRootLogin .*|PermitRootLogin no|' /etc/ssh/sshd_config
|
||||||
sudo sed -Ei 's/^#?PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config
|
sudo sed -Ei 's|^#?PasswordAuthentication .*|PasswordAuthentication no|' /etc/ssh/sshd_config
|
||||||
sudo sed -Ei 's/^#?PermitEmptyPasswords .*/PermitEmptyPasswords no/' /etc/ssh/sshd_config
|
sudo sed -Ei 's|^#?PermitEmptyPasswords .*|PermitEmptyPasswords no|' /etc/ssh/sshd_config
|
||||||
sudo sed -Ei "s/\\\$AWS_REGION/${AWS_REGION}/" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$AWS_REGION|${AWS_REGION}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s/\\\$FATHOM_SITE_ID/${FATHOM_SITE_ID:-}/" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$FATHOM_SITE_ID|${FATHOM_SITE_ID:-}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s/\\\$S3_BUCKET/${S3_BUCKET}/" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$S3_BUCKET|${S3_BUCKET}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s/\\\$SENTRY_DSN/${SENTRY_DSN:-}/" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$SENTRY_DSN|${SENTRY_DSN:-}|" /etc/systemd/system/riju.service
|
||||||
sudo sed -Ei "s|\\\$SUPERVISOR_ACCESS_TOKEN|${SUPERVISOR_ACCESS_TOKEN}|" /etc/systemd/system/riju.service
|
sudo sed -Ei "s|\\\$SUPERVISOR_ACCESS_TOKEN|${SUPERVISOR_ACCESS_TOKEN}|" /etc/systemd/system/riju.service
|
||||||
|
|
||||||
sudo passwd -l root
|
sudo passwd -l root
|
||||||
|
|
Loading…
Reference in New Issue