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

[FIX ON MKI] x-pack/.../telemetry_config.ts #197036

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

wayneseymour
Copy link
Member

Summary

See details: #197009

@wayneseymour wayneseymour added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting labels Oct 21, 2024
@wayneseymour wayneseymour requested a review from afharo October 21, 2024 11:43
@wayneseymour wayneseymour self-assigned this Oct 21, 2024
@wayneseymour wayneseymour requested a review from a team as a code owner October 21, 2024 11:44
Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

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

Thank you for doing this! 🧡

I added 2 very minor comments.

@@ -249,6 +249,7 @@ export class CoreAppsService {
this.configService.setDynamicConfigOverrides(persistedOverrides.attributes);
latestOverrideVersion = persistedOverrides.version;
}
this.logger.info('Succeeded in applying persisted dynamic config overrides');
Copy link
Member

Choose a reason for hiding this comment

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

I'd move this log info inside the IF to only log when a change is actually applied. Otherwise, we'll log it every poll-interval.

Copy link
Member Author

Choose a reason for hiding this comment

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

oh that makes perfect sense

Copy link
Member Author

Choose a reason for hiding this comment

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

import { SupertestWithRoleScopeType } from '@kbn/test-suites-xpack/api_integration/deployment_agnostic/services';
import { FtrProviderContext } from '../../../ftr_provider_context';

export default function telemetryConfigTest({ getService }: FtrProviderContext) {
const roleScopedSupertest = getService('roleScopedSupertest');
let supertestAdminWithApiKey: SupertestWithRoleScopeType;
let supertestAdminWithCookieCredentials: SupertestWithRoleScopeType;
const retry = getService('retry');
const retryTimeout = 180 * 1000;
Copy link
Member

Choose a reason for hiding this comment

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

IMO, even a shorter timeout would be enough (we poll every 10s). 20s should be plenty.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

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

🚀

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #13 / FileAttachmentEvent renders clickable name

Metrics [docs]

✅ unchanged

cc @wayneseymour

@wayneseymour wayneseymour merged commit 9c59469 into elastic:main Oct 21, 2024
24 checks passed
@wayneseymour wayneseymour deleted the add-logging-and-retry-get branch October 21, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FLAKY ON MKI] x-pack/test_serverless/api_integration/test_suites/common/telemetry/telemetry_config.ts
4 participants