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

feat: buildkite bare minimun cli reporter #872

Merged
merged 5 commits into from Dec 13, 2023
Merged

Conversation

shahzad31
Copy link
Contributor

bare minimun cli reporter

@shahzad31 shahzad31 changed the title [Buildkite] bare minimun cli reporter feat: buildkite bare minimun cli reporter Dec 6, 2023
@shahzad31 shahzad31 marked this pull request as ready for review December 6, 2023 17:19
Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

Looks good mostly, just added few comments for errors and output formats.

src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
src/reporters/build_kite_cli.ts Outdated Show resolved Hide resolved
@@ -63,7 +63,16 @@ export type {
export type { default as Runner } from './core/runner';
export type { Reporter, ReporterOptions } from './reporters';

export type { SyntheticsConfig } from './common_types';
export type {
SyntheticsConfig,
Copy link
Member

Choose a reason for hiding this comment

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

nit: expose StartEvent

@@ -70,42 +62,44 @@ export default class BuildKiteCLIReporter extends BaseReporter {
const { failed, succeeded, skipped } = this.metrics;
const total = failed + succeeded + skipped;
if (total === 0 && error) {
this.write(renderError(error));
this.write(renderError(serializeError(error)));
Copy link
Member

Choose a reason for hiding this comment

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

there is a indentation issue here. I would just do the same here by calling super.onJourneyEnd and then add the Took duration message

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@vigneshshanmugam vigneshshanmugam merged commit e2700ea into main Dec 13, 2023
9 checks passed
@vigneshshanmugam vigneshshanmugam deleted the buildkite-cli branch December 13, 2023 18:42
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.

None yet

2 participants