Skip to content

Commit

Permalink
ci(integration): reduce amount of test output to optimise
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Nov 23, 2021
1 parent c151609 commit 9673a4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ jobs:

- name: run agoric-cli integration-test
working-directory: ./packages/agoric-cli
run: PATH="$PATH:$HOME/bin" AGORIC_INIT_OPTIONS='["--dapp-branch=${{steps.get-branch.outputs.result}}"]' yarn integration-test
run: PATH="$PATH:$HOME/bin" yarn integration-test
env:
AGORIC_INIT_OPTIONS: '["--dapp-branch=${{steps.get-branch.outputs.result}}"]'
# Try to avoid hitting a pessimal Actions output rate-limitation.
SOLO_MAX_DEBUG_LENGTH: '1024'
11 changes: 7 additions & 4 deletions packages/solo/src/outbound.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/* global process */
import anylogger from 'anylogger';

import { assert, details as X } from '@agoric/assert';

const MAX_BODY_DEBUG_LENGTH = 1024;
// Limit the debug log length.
const SOLO_MAX_DEBUG_LENGTH =
Number(process.env('SOLO_MAX_DEBUG_LENGTH')) || undefined;

const log = anylogger('outbound');

Expand Down Expand Up @@ -34,10 +37,10 @@ export function deliver(mbs) {
const [msgnum, body] = m;
if (msgnum > t.highestSent) {
log.debug(
`new outbound message ${msgnum} for ${target}: ${body.slice(
`new outbound message ${msgnum} for ${target}: ${body}`.slice(
0,
MAX_BODY_DEBUG_LENGTH,
)}`,
SOLO_MAX_DEBUG_LENGTH,
),
);
newMessages.push(m);
}
Expand Down

0 comments on commit 9673a4c

Please sign in to comment.