Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: testcontainers integration #386

Merged
merged 43 commits into from
Feb 14, 2025
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
27fecfc
chore: add testcontainer packages
viraj124 Jan 23, 2025
d37fef0
chore: generate new fuel wallets during setup
viraj124 Jan 23, 2025
5d2b8ce
chore: make minor adjustments in existing docker files
viraj124 Jan 23, 2025
79df68f
feat: add testcontainers setup
viraj124 Jan 23, 2025
1aa882f
test: add testcontainer integration in non-fork tests
viraj124 Jan 23, 2025
414b372
chore: resolve merge conflict
viraj124 Jan 23, 2025
1f0c731
feat: integrate fork tests with testcontainer
viraj124 Jan 23, 2025
f98dae6
test: small touchups
viraj124 Jan 23, 2025
48446e6
chore: delete current docker setup related files
viraj124 Jan 24, 2025
28d5f1a
chore: remove container start command
viraj124 Jan 24, 2025
518c950
chore: update commands in upgrade test suite ci
viraj124 Jan 24, 2025
8d473b7
feat: testcontainers integration for remaining tests
viraj124 Jan 24, 2025
cd6a3a0
chore: add changeset
viraj124 Jan 24, 2025
6d431b9
chore: update comments
viraj124 Jan 24, 2025
7b7c495
chore: debug ci
viraj124 Jan 24, 2025
14fd01b
chore: formatting
viraj124 Jan 24, 2025
5fab8da
fix: ts linting
viraj124 Jan 24, 2025
ca02355
chore: testcontainer integration in ci
viraj124 Jan 27, 2025
a613ea1
chore: more ci updates
viraj124 Jan 27, 2025
01fbad2
chore: add wait strategy for l1 container
viraj124 Jan 27, 2025
8b14d68
chore: remove healthcheck
viraj124 Jan 27, 2025
bdd0f71
chore: comment out deployment serve port
viraj124 Jan 27, 2025
efb6ff2
chore: more l1 container updates
viraj124 Jan 27, 2025
96d04c9
chore: add logging
viraj124 Jan 27, 2025
c95d34b
chore: fix ts linting
viraj124 Jan 27, 2025
9eac428
chore: add debug arg in ci
viraj124 Jan 27, 2025
8466c8d
chore: remove env args in ci
viraj124 Jan 27, 2025
4c3499e
chore: add typing and revert debugging changes
viraj124 Jan 27, 2025
91e35e9
chore: remove logging
viraj124 Jan 27, 2025
9d6d49b
fix: remove shell scripting to build docker images
viraj124 Jan 28, 2025
3ff9141
chore: rename vars
viraj124 Jan 28, 2025
bab0876
chore: resolve merge conflicts
viraj124 Feb 12, 2025
8e2f0be
chore: update lock file
viraj124 Feb 12, 2025
332dd8c
chore: add try/catch block
viraj124 Feb 12, 2025
1e3ca86
chore: debug ci
viraj124 Feb 12, 2025
db7c8a5
chore: revert latest change
viraj124 Feb 12, 2025
32dc415
chore: resolve conflicts
viraj124 Feb 12, 2025
981b7db
chore: debug ci
viraj124 Feb 12, 2025
c6a3b6f
chore: update command in yml
viraj124 Feb 13, 2025
dd3ad58
chore: revert to original docker setup to build images externally
viraj124 Feb 13, 2025
a26a512
chore: debug tests ci
viraj124 Feb 13, 2025
132db83
chore: uncomment tests
viraj124 Feb 13, 2025
2827212
chore: remove comment
viraj124 Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix ts linting
viraj124 committed Jan 27, 2025
commit c95d34bcf658597bba59667c20fb45b889e5cc61
4 changes: 2 additions & 2 deletions packages/integration-tests/docker-setup/docker.ts
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
})
.start();

const l1_node: StartedTestContainer = await startL1ChainContainer(network);
const l1_node: StartedTestContainer = await startL1ChainContainer();
const fuel_node: StartedTestContainer = await startFuelNodeContainer(
network,
l1_node,
@@ -42,7 +42,7 @@
return { postGresContainer, l1_node, fuel_node, block_committer };
}

async function startL1ChainContainer(network: StartedNetwork) {
async function startL1ChainContainer() {
const execAsync = promisify(exec);

const IMAGE_NAME = 'fueldev/l1chain:latest';
@@ -59,7 +59,7 @@
// await execAsync(buildCommand);

try {
const { stdout, stderr } = await execAsync(buildCommand);
console.log('Docker build output:');
console.log('stdout:', stdout);
if (stderr) {
@@ -175,7 +175,7 @@
-f ${dockerfilePath} \
${projectRoot}`;

const { stdout } = await execAsync(buildCommand);

console.log('Build output:', stdout);


Unchanged files with check annotations Beta

/// @dev The Fuel testing utils.
/// A set of useful helper methods for the integration test environment.
import type { BN, AbstractAddress } from 'fuels';

Check warning on line 3 in packages/test-utils/src/utils/fuels/waitForMessage.ts

GitHub Actions / validate

'/home/runner/actions-runner/_work/fuel-bridge/fuel-bridge/packages/test-utils/node_modules/fuels/dist/index.mjs' imported multiple times
import { type Provider as FuelProvider, type Message, hexlify } from 'fuels';

Check warning on line 4 in packages/test-utils/src/utils/fuels/waitForMessage.ts

GitHub Actions / validate

'/home/runner/actions-runner/_work/fuel-bridge/fuel-bridge/packages/test-utils/node_modules/fuels/dist/index.mjs' imported multiple times
import { FUEL_MESSAGE_POLL_MS } from '../constants';
import { delay } from '../delay';