Skip to content

Change APM OSS plugin name from apm_oss to apmOss#60379

Closed
mohinderps wants to merge 2 commits intoelastic:masterfrom
mohinderps:change-plugin-name-apm_oss
Closed

Change APM OSS plugin name from apm_oss to apmOss#60379
mohinderps wants to merge 2 commits intoelastic:masterfrom
mohinderps:change-plugin-name-apm_oss

Conversation

@mohinderps
Copy link
Copy Markdown
Contributor

Closes #59184

Summary

Snake case plugin names give warning in console. In this PR, APM OSS plugin's name is changed fro apm_oss to apmOss

@mohinderps mohinderps requested a review from a team March 17, 2020 14:46
@kibanamachine
Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@timroes timroes added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Mar 17, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:apm)

@smith smith added v7.7.0 release_note:skip Skip the PR/issue when compiling release notes labels Mar 17, 2020
@smith
Copy link
Copy Markdown
Contributor

smith commented Mar 17, 2020

@elasticmachine test this please

Copy link
Copy Markdown
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! 👍 assuming tests pass.

@smith
Copy link
Copy Markdown
Contributor

smith commented Mar 19, 2020

retest

1 similar comment
@sorenlouv
Copy link
Copy Markdown
Contributor

retest

@mohinderps
Copy link
Copy Markdown
Contributor Author

Hi @sqren, what has happened here ? Is there anything I need to do here ?

@sorenlouv
Copy link
Copy Markdown
Contributor

@elasticmachine merge upstream

@sorenlouv
Copy link
Copy Markdown
Contributor

sorenlouv commented Mar 19, 2020

Hi @sqren, what has happened here ? Is there anything I need to do here ?

Just the build acting up. I'll kick it.

@mohinderps
Copy link
Copy Markdown
Contributor Author

Hi @sqren, what has happened here ? Is there anything I need to do here ?

Just the build acting up. I'll kick it.

Cool!

@sorenlouv
Copy link
Copy Markdown
Contributor

retest

2 similar comments
@sorenlouv
Copy link
Copy Markdown
Contributor

retest

@sorenlouv
Copy link
Copy Markdown
Contributor

retest

@sorenlouv
Copy link
Copy Markdown
Contributor

@elasticmachine merge upstream

@sorenlouv
Copy link
Copy Markdown
Contributor

retest

1 similar comment
@smith
Copy link
Copy Markdown
Contributor

smith commented Mar 23, 2020

retest

Copy link
Copy Markdown
Contributor

@sorenlouv sorenlouv Mar 23, 2020

Choose a reason for hiding this comment

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

I think the build is failing because the following two instances of apm_oss also need to be changed:

apm_oss: APMOSSPluginSetup;

to:

 apmOss: APMOSSPluginSetup; 

and...

const mergedConfig$ = combineLatest(plugins.apm_oss.config$, config$).pipe(

to:

 const mergedConfig$ = combineLatest(plugins.apmOss.config$, config$).pipe( 

@joshdover do you agree?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@sqren I think you're right. This is happening on startup for me:

server    log   [08:08:06.407] [fatal][root] TypeError: Cannot read property 'config$' of undefined
    at APMPlugin.setup (/Users/smith/Code/kibana/x-pack/plugins/apm/server/plugin.ts:54:57)
    at PluginWrapper.setup (/Users/smith/Code/kibana/src/core/server/plugins/plugin.ts:100:26)
    at PluginsSystem.setupPlugins (/Users/smith/Code/kibana/src/core/server/plugins/plugins_system.ts:91:25)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh! I can do that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes that sounds right

@mohinderps mohinderps force-pushed the change-plugin-name-apm_oss branch from ce04ace to 0b86fe8 Compare March 24, 2020 17:14
@smith
Copy link
Copy Markdown
Contributor

smith commented Mar 25, 2020

retest

@smith
Copy link
Copy Markdown
Contributor

smith commented Mar 25, 2020

@elasticmachine test this please

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Failed CI Steps

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith self-requested a review March 26, 2020 02:43
Copy link
Copy Markdown
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

Looks like this is failing with:

 FATAL  TypeError: Cannot read property 'registerLegacyAPI' of undefined

which I think is happening here:

apmPlugin.registerLegacyAPI({

I haven't gotten a chance to figure out what's causing that though.

@smith
Copy link
Copy Markdown
Contributor

smith commented Mar 27, 2020

Tagging this as 7.8.

@smith smith added v7.8.0 and removed v7.7.0 labels Mar 27, 2020
@mohinderps
Copy link
Copy Markdown
Contributor Author

Looks like this is failing with:

 FATAL  TypeError: Cannot read property 'registerLegacyAPI' of undefined

which I think is happening here:

apmPlugin.registerLegacyAPI({

I haven't gotten a chance to figure out what's causing that though.

Looking into this.

@ogupte
Copy link
Copy Markdown
Contributor

ogupte commented Apr 22, 2020

@mohinderps Let me know if you need any help looking in to this.

@mohinderps
Copy link
Copy Markdown
Contributor Author

@mohinderps Let me know if you need any help looking in to t

@mohinderps Let me know if you need any help looking in to this.

Yes please. I have no idea why apmPlugin is undefined as @smith says.

@ogupte
Copy link
Copy Markdown
Contributor

ogupte commented May 12, 2020

@mohinderps I was able to get the CI tests to pass in another branch and also updated the plugin name in the apm dependencies in this PR: #66164. Thank you for the contribution!

@ogupte ogupte closed this May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💝community release_note:skip Skip the PR/issue when compiling release notes Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APM] Change plugin id for apm_oss to apmOss

8 participants