Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 3d65e83
Author: kilavvy <140459108+kilavvy@users.noreply.github.com>
Date:   Wed Feb 19 18:19:46 2025 +0100

    fix: typos in documentation files (#727)

    * chore(api): Removes PostHog configuration and related code (#707)

    * chore(api): Removes PostHog configuration and related code

    * chore(api): Added changeset

    * Delete .changeset/red-beers-count.md

    * Update helpers.ts

    * Update blob.test.ts.snap

    * Update tx.test.ts.snap

    ---------

    Co-authored-by: Luis Herasme <luis.alberto.herasme.cuevas@gmail.com>

commit 3f7cd04
Author: Tronica <wudmytrotest404@gmail.com>
Date:   Mon Feb 17 15:36:02 2025 +0100

    Fix spelling errors in API snapshots and retry command test cases (#712)

    * fix spelling retry.test.ts

    * fix spelling block.test.ts.snap

    * fix spelling tx.test.ts.snap

    * fix spelling blob.test.ts.snap

    * fix spelling helpers.ts

commit 53e1c07
Author: Maxim Evtush <154841002+maximevtush@users.noreply.github.com>
Date:   Mon Feb 17 14:18:07 2025 +0100

    fix: typos in documentation files (#716)

    * Update helpers.ts

    * Update tx.test.ts.snap

    * Update block.test.ts.snap

commit 18a3f7e
Author: youyyytrok <d.ionov.beats@gmail.com>
Date:   Mon Feb 17 14:17:44 2025 +0100

    fix: documentation link and typo (#715)

    * fix broken link page.md

    * typo indexer.test.ts

commit b0b89a2
Author: indmind <biology_plugs_3t@icloud.com>
Date:   Mon Feb 17 07:17:02 2025 -0600

    chore: fix typo in variable name (#718)
  • Loading branch information
PabloCastellano committed Feb 24, 2025
1 parent 804bbe3 commit ca460d3
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/app/docs/testing/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ We rely on testing to ensure our solutions meet user expectations.

**Framework:** We utilize [Vitest](https://vitest.dev), which is set up with a [workspace configuration](https://vitest.dev/guide/workspace.html) tailored for our monorepo.

**Integration Testing:** Our integration tests run with a local PostgreSQL database and a [fake GCS server](https://github.com/fsouza/fake-gcs-server), orchestrated via [Docker](https://www.docker.com). This ensures our tests mimic real-world scenarios. We employ a [specific script](https://github.com/Blobscan/blobscan/blob/next/scripts/run-integration.sh) to set up these services before initiating tests.
**Integration Testing:** Our integration tests run with a local PostgreSQL database and a [fake GCS server](https://github.com/fsouza/fake-gcs-server), orchestrated via [Docker](https://www.docker.com). This ensures our tests mimic real-world scenarios. We employ a [specific script](https://github.com/Blobscan/blobscan/blob/main/scripts/run-integration.sh) to set up these services before initiating tests.

## Setting Up Your Environment

Expand Down
6 changes: 3 additions & 3 deletions clis/blob-propagation-jobs-cli/test/commands/retry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
describe("Retry command", () => {
let storageWorkers: BlobPropagationWorker[];
const jobVersionedHashes = [
"versionesHash1",
"versionesHash2",
"versionesHash3",
"versionsHash1",
"versionsHash2",
"versionsHash3",
];

beforeEach(async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/__snapshots__/blob.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ exports[`Blob router > getAll > when getting filtered blob results > should retu
]
`;

exports[`Blob router > getAll > when getting filtered blob results > should return the results starting from the block specificed 1`] = `
exports[`Blob router > getAll > when getting filtered blob results > should return the results starting from the block specified 1`] = `
[
{
"blockHash": "0x8000000000000000000000000000000000000000000000000000000000000000",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/__snapshots__/block.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ exports[`Block router > getAll > when getting filtered block results > should re
]
`;

exports[`Block router > getAll > when getting filtered block results > should return the results starting from the block specificed 1`] = `
exports[`Block router > getAll > when getting filtered block results > should return the results starting from the block specified 1`] = `
[
{
"blobAsCalldataGasUsed": "255000",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/__snapshots__/tx.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ exports[`Transaction router > getAll > when getting filtered transaction results
]
`;

exports[`Transaction router > getAll > when getting filtered transaction results > should return the results starting from the block specificed 1`] = `
exports[`Transaction router > getAll > when getting filtered transaction results > should return the results starting from the block specified 1`] = `
[
{
"blobAsCalldataGasFee": "10000",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function runFiltersTestsSuite(
expect(result).toMatchSnapshot();
});

it("should return the results starting from the block specificed", async () => {
it("should return the results starting from the block specified", async () => {
const result = await fetcher({
startBlock: 1007,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/api/test/indexer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ describe("Indexer router", async () => {
expect(dbRewindedBlockTxs).toEqual(dbRewindedBlockForkTxs);
});

describe("when cleaing up block references", () => {
describe("when cleaning up block references", () => {
let rewindedBlockNumbers: number[];
beforeAll(async () => {
rewindedBlockNumbers = await authorizedContext.prisma.block
Expand Down
6 changes: 3 additions & 3 deletions packages/blob-storage-manager/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ export function updateBlobStorageMetrics({
direction: Direction;
duration: number;
}) {
const counterAttributtes: StorageMetricBaseAttributes = {
const counterAttributes: StorageMetricBaseAttributes = {
storage,
direction,
};

bytesTransferredTotalCounter.add(blobSize, counterAttributtes);
bytesTransferredTotalCounter.add(blobSize, counterAttributes);
filesTransferredTotalCounter.add(1, {
direction,
storage,
});
transferDurationHistogram.record(duration, counterAttributtes);
transferDurationHistogram.record(duration, counterAttributes);
}

0 comments on commit ca460d3

Please sign in to comment.