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

10432: Performance Measurement - TO TEST #5254

Closed
wants to merge 62 commits into from

Conversation

cruzjone-flexion
Copy link
Contributor

@cruzjone-flexion cruzjone-flexion commented Aug 15, 2024

This PR might not get merged.
It is working but using CloudWatch Metrics will be too expensive.

John Cruz and others added 30 commits July 31, 2024 11:16
…quence takes to run; Add a minimum amount of time to console log the results;
.saveSystemPerformanceData.mockImplementation(() => {});
});

it('should call persistence method with correct data', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it('should not allow unauthorized call to log data')

).should('be.visible');

retry(() => {
cy.reload(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the reload? (Just making sure I understand!)

@@ -46,6 +46,7 @@ IRS_CLIENT_ID=$(aws cognito-idp list-user-pool-clients \
echo "DAWSON_ENV='${ENV}'"
echo "DYNAMODB_TABLE_NAME='${SOURCE_TABLE}'"
echo "ELASTICSEARCH_ENDPOINT='${ELASTICSEARCH_ENDPOINT}'"
echo "ELASTICSEARCH_INFO_ENDPOINT='${ELASTICSEARCH_INFO_ENDPOINT}'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, and probably not worth doing if it involves changing infrastructure, but I wonder if we should give this a clearer name? Info can mean just about anything.

* logging
*/
{
app.post(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this contribute to high server load if we end up logging a lot?

sequences: presenterSequences,
sequences: Object.entries(presenterSequences).reduce(
(acc, [sequenceName, sequence]) => {
const SYSTEM_PERFORMANCE_BLACKLIST: string[] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@Mwindo Mwindo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super cool! I left a few comments. I would want to understand things a little more clearly before merging to a non-test environment (mostly around server load implications and making sure nested sequences are giving accurate data EDIT: Nevermind! I thought we might be logging something wrong, but it turns out the logging caught something that was wrong!), but I think it's good to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants