Skip to content

Conversation

@samchungy
Copy link
Contributor

Ripped out changes from: #1518

@changeset-bot
Copy link

changeset-bot bot commented Jun 8, 2024

🦋 Changeset detected

Latest commit: f479b47

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@samchungy samchungy marked this pull request as ready for review June 8, 2024 05:00
@samchungy samchungy requested a review from a team as a code owner June 8, 2024 05:00
@samchungy samchungy force-pushed the upgrade-cdk-template branch from d904752 to 2a2adfe Compare June 12, 2024 02:23
Copy link
Member

@72636c 72636c left a comment

Choose a reason for hiding this comment

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

Just a few questions on the existing Serverless template, feel free to merge if we'd rather tackle later/elsewhere.

Copy link
Member

Choose a reason for hiding this comment

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

Do we think this sample code in particular is useful? I don't have a strong opinion, but while code like src/framework/logging.ts is meant to be usable in your actual app, this is basically code that demonstrates how you could structure a worker, that you will need to delete from the repo afterward.

It then makes me sad when I see it hanging around 😅 as dead code: https://github.com/search?q=org%3ASEEK-Jobs%20path%3Asrc%2Fservices%2FjobScorer.ts&type=code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Think we can address these all in another PR

Comment on lines +14 to +18
spy: () => {
jest.spyOn(logging.logger, 'error').mockImplementation(logger.error);
jest.spyOn(logging.logger, 'info').mockImplementation(logger.info);
jest.spyOn(logging.logger, 'debug').mockImplementation(logger.debug);
},
Copy link
Member

Choose a reason for hiding this comment

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

Question, do we like this pattern? Would we rather

  1. Have some kind of default automock, to reduce boilerplate?
  2. Investigate a different option to test logging? Recently I've been playing with a custom destination like createLogger({}, { write: (msg) => (myFakeStdout += msg)} because it's simple and gives you full coverage of logger.child, @seek/logger trimming, etc.

Copy link
Member

Choose a reason for hiding this comment

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

Ref regarding 2: SEEK-Jobs/indie-hirer-posting-preferences-api#44

addLayers: false,
enableDatadogLogs: false,
flushMetricsToLogs: false,
extensionLayerVersion: 58,
Copy link
Member

Choose a reason for hiding this comment

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

🤔 should I be concerned about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

II was planning on setting up a customManager in rynovate under infra/.*ts to renovate these.

DataDog/datadog-cdk-constructs#232

@samchungy samchungy marked this pull request as draft September 30, 2024 06:05
@samchungy
Copy link
Contributor Author

Awaiting DataDog/datadog-cdk-constructs#303

@lukeymyuan
Copy link
Contributor

Can you add README file similar to other templates?


import { config } from './config';

// Updated by https://github.com/seek-oss/rynovate
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@samchungy samchungy marked this pull request as ready for review October 19, 2024 03:07
@samchungy samchungy merged commit 498139c into main Oct 19, 2024
@samchungy samchungy deleted the upgrade-cdk-template branch October 19, 2024 03:07
@seek-oss-ci seek-oss-ci mentioned this pull request Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants