Skip to content

Commit 8405f48

Browse files
committed
Add shared component for aws blocking statements blockquote
1 parent 556b391 commit 8405f48

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import Blockquote from 'components/shared/blockquote';
2+
import React from 'react';
3+
4+
const BlockingAwsBlockquote = () => (
5+
<Blockquote
6+
mod="Attention"
7+
title="Performance considerations and recommended practices"
8+
>
9+
The APIs provided by this jslib operate synchronously, which means k6 must
10+
wait for operations that use the client classes to finish before proceeding
11+
with the rest of the script.
12+
<p>
13+
In some cases, such as downloading large files from S3, this could affect
14+
performance and test results. To minimize the impact on test performance,
15+
we recommend using these operations in the
16+
<span className="code-inline">setup</span> and{' '}
17+
<span className="code-inline">teardown</span>{' '}
18+
<a href="/using-k6/test-lifecycle/">lifecycle functions</a>. These
19+
functions run before and after the test run and thus do not influence test
20+
results.
21+
</p>
22+
</Blockquote>
23+
);
24+
25+
export default BlockingAwsBlockquote;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import BlockingAwsBlockquote from './blocking-aws-blockquote.view';
2+
3+
export default BlockingAwsBlockquote;

src/components/templates/doc-page/doc-page-content/doc-page-content.view.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import classNames from 'classnames';
22
import { HtmlContent } from 'components/blocks/html-content';
33
import Glossary from 'components/pages/doc-page/glossary';
44
import TableOfContents from 'components/pages/doc-page/table-of-contents';
5+
import BlockingAwsBlockquote from 'components/shared/blocking-aws-blockquote';
56
import Blockquote from 'components/shared/blockquote';
67
import BrowserClassList from 'components/shared/browser-class-list';
78
import BrowserDocsWIP from 'components/shared/browser-docs-wip';
@@ -39,6 +40,7 @@ const componentsForNativeReplacement = {
3940
BrowserClassList,
4041
BrowserWIP,
4142
ExperimentalBlockquote,
43+
BlockingAwsBlockquote,
4244
InstallationInstructions,
4345
Tooltip,
4446
BNIT,

0 commit comments

Comments
 (0)