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

[Dataset Quality] Work around a geoip limitation in CI #203165

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/kbn-apm-synthtrace-client/src/lib/logs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export type LogDocument = Fields &
'kubernetes.pod.name'?: string;
'kubernetes.container.name'?: string;
'orchestrator.resource.name'?: string;
tags?: string | string[];
}>;

class Log extends Serializable<LogDocument> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,7 @@ export const MORE_THAN_1024_CHARS =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?';
export const ANOTHER_1024_CHARS =
'grape fig tangerine tangerine kiwi lemon papaya cherry nectarine papaya mango cherry nectarine fig cherry fig grape mango mango quince fig strawberry mango quince date kiwi quince raspberry apple kiwi banana quince fig papaya grape mango cherry banana mango cherry lemon cherry tangerine fig quince quince papaya tangerine grape strawberry banana kiwi grape mango papaya nectarine banana nectarine kiwi papaya lemon apple lemon orange fig cherry grape apple nectarine papaya orange fig papaya date mango papaya mango cherry tangerine papaya apple banana papaya cherry strawberry grape raspberry lemon date papaya mango kiwi cherry fig banana banana apple date strawberry mango tangerine date lemon kiwi quince date orange orange papaya date apple fig tangerine quince tangerine date papaya banana banana orange raspberry papaya apple nectarine lemon raspberry raspberry mango cherry kiwi cherry cherry nectarine cherry date strawberry banana orange mango mango tangerine quince papaya papaya kiwi papaya strawberry date mango';

export const CONSISTENT_TAGS = [
'this_is_here_to_remove_variance_introduced_by_the_geoip_processor',
];
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import expect from '@kbn/expect';
import moment from 'moment';
import { generateShortId, log, timerange } from '@kbn/apm-synthtrace-client';
import {
ANOTHER_1024_CHARS,
CONSISTENT_TAGS,
MORE_THAN_1024_CHARS,
createDegradedFieldsRecord,
defaultNamespace,
getInitialTestLogs,
ANOTHER_1024_CHARS,
MORE_THAN_1024_CHARS,
} from './data';
import { FtrProviderContext } from '../../../ftr_provider_context';
import { logsSynthMappings } from './custom_mappings/custom_synth_mappings';
Expand Down Expand Up @@ -55,8 +56,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const apmAppDataStreamName = `${type}-${apmAppDatasetName}-${defaultNamespace}`;

describe('Degraded fields flyout', function () {
// see details: https://github.com/elastic/kibana/issues/202641
this.tags(['failsOnMKI']);
describe('degraded field flyout open-close', () => {
before(async () => {
await synthtrace.index([
Expand Down Expand Up @@ -207,6 +206,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'service.name': serviceName,
'trace.id': generateShortId(),
test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS],
// this works around a geoip limitation in CI
tags: CONSISTENT_TAGS,
})
.timestamp(timestamp)
);
Expand Down Expand Up @@ -300,6 +301,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'trace.id': generateShortId(),
test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS],
'cloud.project.id': generateShortId(),
// this works around a geoip limitation in CI
tags: CONSISTENT_TAGS,
})
.timestamp(timestamp)
);
Expand Down Expand Up @@ -410,6 +413,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'trace.id': generateShortId(),
test_field: [MORE_THAN_1024_CHARS, ANOTHER_1024_CHARS],
'cloud.project.id': generateShortId(),
// this works around a geoip limitation in CI
tags: CONSISTENT_TAGS,
})
.timestamp(timestamp)
);
Expand Down
Loading