Skip to content

Commit

Permalink
Merge branch 'master' into mc/chore/integrate-launch-test-node
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad authored Jul 18, 2024
2 parents 8809708 + 98748ec commit 6321c16
Show file tree
Hide file tree
Showing 54 changed files with 245 additions and 107 deletions.
5 changes: 0 additions & 5 deletions .changeset/brave-elephants-peel.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/eight-trainers-deny.md

This file was deleted.

4 changes: 4 additions & 0 deletions .changeset/neat-bikes-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

fix: verification of all test nodes being killed
4 changes: 0 additions & 4 deletions .changeset/olive-comics-matter.md

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/rare-ducks-sort.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rotten-forks-share.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-paws-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sixty-plums-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-cycles-do.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/tall-foxes-applaud.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-pears-fly.md

This file was deleted.

20 changes: 2 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
name: "Release"
runs-on: ubuntu-latest
permissions: write-all
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Ensure that the workflow runs only after a commit is pushed into the branch
# and not when the branch is created.
# This is to avoid running the workflow when a release/* branch is created.
Expand Down Expand Up @@ -125,21 +122,6 @@ jobs:
if: startsWith(env.LAST_COMMIT_MSG, 'ci(changesets):') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true'
run: echo SHOULD_DEPLOY_DOCS=true >> $GITHUB_ENV

- name: Configure GitHub Pages
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/configure-pages@v5

- name: Upload Docs Artifact
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/dist

- name: Deploy Docs
if: env.SHOULD_DEPLOY_DOCS == 'true'
id: deployment
uses: actions/deploy-pages@v4

- name: Checkout API Docs
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/checkout@v4
Expand Down Expand Up @@ -206,12 +188,14 @@ jobs:
arch: amd64
rootdir: ""
workdir: ""

- uses: aws-actions/configure-aws-credentials@v4
if: github.ref_name == 'master' && steps.changesets.outputs.published != 'true'
with:
aws-access-key-id: ${{ secrets.S3_CDN_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.S3_CDN_SECRET_KEY }}
aws-region: us-east-1

- name: Upload assets to s3
if: github.ref_name == 'master' && steps.changesets.outputs.published != 'true'
run: |
Expand Down
1 change: 0 additions & 1 deletion apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import apiLinks from '../.typedoc/api-links.json';
export default defineConfig({
title: 'Fuels-ts',
description: 'Fuel Typescript SDK',
base: '/fuels-ts/',
srcDir: 'src',
outDir: 'dist',
lang: 'en-US',
Expand Down
11 changes: 11 additions & 0 deletions packages/abi-coder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 0.92.1

### Patch Changes

- @fuel-ts/crypto@0.92.1
- @fuel-ts/errors@0.92.1
- @fuel-ts/hasher@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/math@0.92.1
- @fuel-ts/utils@0.92.1

## 0.92.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-coder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/abi-coder",
"version": "0.92.0",
"version": "0.92.1",
"description": "",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"main": "dist/index.js",
Expand Down
9 changes: 9 additions & 0 deletions packages/abi-typegen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @fuel-ts/abi-typegen

## 0.92.1

### Patch Changes

- @fuel-ts/errors@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/utils@0.92.1
- @fuel-ts/versions@0.92.1

## 0.92.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-typegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/abi-typegen",
"version": "0.92.0",
"version": "0.92.1",
"description": "Generates Typescript definitions from Sway ABI Json files",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"bin": {
Expand Down
17 changes: 17 additions & 0 deletions packages/account/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

## 0.92.1

### Patch Changes

- c62ae85: build(deps): bump @fuels/vm-asm from 0.54.0 to 0.55.0
- @fuel-ts/abi-coder@0.92.1
- @fuel-ts/address@0.92.1
- @fuel-ts/crypto@0.92.1
- @fuel-ts/errors@0.92.1
- @fuel-ts/hasher@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/math@0.92.1
- @fuel-ts/merkle@0.92.1
- @fuel-ts/transactions@0.92.1
- @fuel-ts/utils@0.92.1
- @fuel-ts/versions@0.92.1

## 0.92.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/account",
"version": "0.92.0",
"version": "0.92.1",
"description": "",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"main": "dist/index.js",
Expand Down
22 changes: 0 additions & 22 deletions packages/account/src/test-utils/launchNode-singular-test.test.ts

This file was deleted.

23 changes: 23 additions & 0 deletions packages/account/src/test-utils/launchNode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,29 @@ describe('launchNode', () => {
await waitUntilUnreachable(url);
});

/**
* Spawning the child process in a detached state
* Results in the OS assigning a process group to the child.
* Combining that with `process.kill(-pid)`,
* which sends a "kill process group" signal to the OS,
* ensures that the node will be killed.
*/
it('spawns the fuel-core node in a detached state and kills the process group on cleanup', async () => {
const spawnSpy = vi.spyOn(childProcessMod, 'spawn');
const killSpy = vi.spyOn(process, 'kill');

const { cleanup, pid } = await launchNode();

const spawnOptions = spawnSpy.mock.calls[0][2];
expect(spawnOptions.detached).toBeTruthy();

cleanup();

expect(killSpy).toHaveBeenCalledTimes(1);
// adding a minus prefix kills the process group
expect(killSpy).toHaveBeenCalledWith(-pid);
});

test('should start `fuel-core` node using system binary', async () => {
const spawnSpy = vi.spyOn(childProcessMod, 'spawn');

Expand Down
9 changes: 9 additions & 0 deletions packages/address/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 0.92.1

### Patch Changes

- @fuel-ts/crypto@0.92.1
- @fuel-ts/errors@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/utils@0.92.1

## 0.92.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/address/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/address",
"version": "0.92.0",
"version": "0.92.1",
"description": "Utilities for encoding and decoding addresses",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"main": "dist/index.js",
Expand Down
18 changes: 18 additions & 0 deletions packages/contract/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## 0.92.1

### Patch Changes

- 7579259: fix: `launchTestNode` multiple contracts type inference
- Updated dependencies [c62ae85]
- @fuel-ts/account@0.92.1
- @fuel-ts/program@0.92.1
- @fuel-ts/abi-coder@0.92.1
- @fuel-ts/crypto@0.92.1
- @fuel-ts/errors@0.92.1
- @fuel-ts/hasher@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/merkle@0.92.1
- @fuel-ts/transactions@0.92.1
- @fuel-ts/utils@0.92.1
- @fuel-ts/versions@0.92.1

## 0.92.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/contract",
"version": "0.92.0",
"version": "0.92.1",
"description": "",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"main": "dist/index.js",
Expand Down
9 changes: 9 additions & 0 deletions packages/create-fuels/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# create-fuels

## 0.92.1

### Patch Changes

- e4452f9: build(deps): bump next from 14.2.4 to 14.2.5 in the deps group
- 1b4b033: chore: replace `create-fuels` hardcoded values with constants
- ce5b6b8: build(deps-dev): bump the dev-deps group with 9 updates
- 766faed: build(deps): bump @tanstack/react-query from 5.29.2 to 5.51.1

## 0.92.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-fuels/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-fuels",
"version": "0.92.0",
"version": "0.92.1",
"description": "",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"bin": {
Expand Down
9 changes: 9 additions & 0 deletions packages/crypto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 0.92.1

### Patch Changes

- @fuel-ts/errors@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/math@0.92.1
- @fuel-ts/utils@0.92.1

## 0.92.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/crypto",
"version": "0.92.0",
"version": "0.92.1",
"description": "Utilities for encrypting and decrypting data",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"main": "dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/errors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @fuel-ts/errors

## 0.92.1

### Patch Changes

- @fuel-ts/versions@0.92.1

## 0.92.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fuel-ts/errors",
"version": "0.92.0",
"version": "0.92.1",
"description": "Error class and error codes that the fuels-ts library throws",
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
"main": "dist/index.js",
Expand Down
24 changes: 24 additions & 0 deletions packages/fuels/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Change Log

## 0.92.1

### Patch Changes

- 9c20eb9: feat: add minified `fuels` distribution
- Updated dependencies [c62ae85]
- Updated dependencies [7579259]
- @fuel-ts/account@0.92.1
- @fuel-ts/program@0.92.1
- @fuel-ts/contract@0.92.1
- @fuel-ts/script@0.92.1
- @fuel-ts/abi-coder@0.92.1
- @fuel-ts/abi-typegen@0.92.1
- @fuel-ts/address@0.92.1
- @fuel-ts/crypto@0.92.1
- @fuel-ts/errors@0.92.1
- @fuel-ts/hasher@0.92.1
- @fuel-ts/interfaces@0.92.1
- @fuel-ts/math@0.92.1
- @fuel-ts/merkle@0.92.1
- @fuel-ts/transactions@0.92.1
- @fuel-ts/utils@0.92.1
- @fuel-ts/versions@0.92.1

## 0.92.0

### Minor Changes
Expand Down
Loading

0 comments on commit 6321c16

Please sign in to comment.