Skip to content

Commit

Permalink
Merge pull request #4113 from Agoric/mfig-ci-optimise-integration-test
Browse files Browse the repository at this point in the history
ci: optimise integration test
  • Loading branch information
mergify[bot] authored Nov 24, 2021
2 parents 66fd145 + 69fafb2 commit a5ea90c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 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: 11 additions & 0 deletions docs/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ Same as SLOGFILE, but for solo instead of chain.

Lifetime: ?

## SOLO_MAX_DEBUG_LENGTH

Affects: solo

Purpose: reduce the size of each individual `console.debug` output

Description: defaults to no limit, set to a decimal byte count to reduce the
output

Lifetime: Until CI no longer balks on long output, or our source bundles aren't delivered via messages to the sim-chain

## SLOGFILE

Affects: cosmic-swingset
Expand Down
12 changes: 11 additions & 1 deletion packages/solo/src/outbound.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/* global process */
import anylogger from 'anylogger';

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

// 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 @@ -31,7 +36,12 @@ export function deliver(mbs) {
data[target].outbox.forEach(m => {
const [msgnum, body] = m;
if (msgnum > t.highestSent) {
log.debug(`new outbound message ${msgnum} for ${target}: ${body}`);
log.debug(
`new outbound message ${msgnum} for ${target}: ${body}`.slice(
0,
SOLO_MAX_DEBUG_LENGTH,
),
);
newMessages.push(m);
}
});
Expand Down

0 comments on commit a5ea90c

Please sign in to comment.