QuillHub
QuillHub
EN

Jenkins Configuration as Code — Office Hours 2019-09-11

25:394 спикера
25:35
длительность
15
главы
4
спикеры
7
Идеи
Jenkins Configuration as Codeplugin documentationplugin compatibilityJSON schemaplugin site deprecationHacktoberfest

Спикеры

4
Спикер A58%45 реплик
Спикер B36%41 реплика
Спикер C4%11 реплик
Спикер D2%5 реплик

Основные идеи

7
  • Work is underway to add Configuration as Code to the Jenkins BOM to improve plugin compatibility testing.
  • Plugin documentation is being migrated from the wiki to GitHub; about 30 plugins migrated and 50 plugins use GitHub documentation on the site.
  • There are pending compatibility issues and releases needed (notably SSH-related plugins and some compatibility fixes).
  • Plugin site can be improved to show deprecation warnings and better docs pulled from GitHub.
  • A JSON schema pull request exists and the group prefers merging the better-but-not-perfect schema now and iterating.

Важные моменты

5
  • Migration from wiki to GitHub for plugin documentation deployed; ~30 migrated, 50 plugins using GitHub docs on update site.
  • Follow-up planned to add visible deprecation warnings on the plugin site.
  • JSON schema PR reviewed and accepted in principle; consensus to replace the old/broken schema with the new one now.
  • Mailer plugin updated and compatible with the current baseline (G-Class).
  • Hacktoberfest discussed as an opportunity to create issues and demos to attract contributors to JCasC.

Решения

2
  • Consensus to replace the old/broken JSON schema with the new, improved schema now (merge soon and iterate).
  • Display of deprecation warnings on the plugin site will be implemented (follow-up ticket created).

Задачи

5
  • Create a follow-up ticket to display a prominent deprecation warning on the plugin site when the deprecated label is present.
  • Merge the improved JSON schema PR and decide whether to link to the schema immediately or add the link later.
  • Continue progress on releasing the SSH-related plugin(s) so Configuration as Code can be added to the BOM.
  • Review and advance the 'system read' pull request (take a closer look to get it over the line).
  • Prepare and add issues/demos for Hacktoberfest (documentation migrations, integration tests, newbie-friendly tickets, demos for plugins).

Термины

7
Jenkins BOM — A Bill of Materials listing plugin versions used as a baseline for compatibility testing.
JCasC (Jenkins Configuration as Code) — A Jenkins project/plugin set that enables configuring Jenkins via declarative configuration files.
Plugin site / update-center-2 — The system and repository generating the Jenkins update site and plugin metadata, including documentation URLs.
Deprecation engine — A proposed mechanism to mark plugins as deprecated and potentially trigger UI warnings or automated actions like uninstall.
JSON schema — A schema for validating configuration files; a PR aims to provide a working, linkable schema for JCasC.

Основное содержание

15 глав · 25:35
0:00

1. Welcome and Meeting Opening

Спикер A0:00

Okay, it's being recorded.

Спикер B0:01

Cool. All right, so welcome to the office hours for the 11th of September 2019. On the call, we have myself, Tim Jacob, Oleg, John, and Joseph.

0:17

2. Releases and Configuration as Code (BOM)

Спикер B0:17

Today, we'll start off with any— since the last meeting, I think we've had 16 days ago. So we've had one release, which is not very exciting. The logs were adding an extra space than what they needed, but when people were testing against configuration as code, they were having to add that space in, and we wanted to fix that before it got too wide so we didn't have to update too many places. That's because we're working on adding configuration as code to the Jenkins BOM.

And we had some compatibility problems with the plugin. The plugin compatibility tester was highlighting issues with tests not passing on new versions of configuration as code. Here we go. So I think all of the— yeah, so here I think all the pull requests have been merged. We're just waiting on releases. Just waiting on the release of SSH. No, which one? I think it's the SSH credentials plugin. Is that right, Joseph?

Спикер C1:30

I can't remember, actually. I know, I think SSH credentials were done by Matt.

Спикер B1:40

Maybe I think it's SSH slaves then.

Спикер C1:44

Yeah, Kurtz, who has to do— Yeah,

Спикер B1:47

Yeah, okay. So once that's done, we should be unblocked on adding it to the BOM, which would be quite nice. It means that people updating the BOM will keep up to date, and we'll get some good plugin compatibility testing through the BOM as well.

2:06

3. Plugin Site Documentation Migration (GitHub)

Спикер B2:06

Plugin site updates: the work to pull documentation in from GitHub instead of the wiki has been deployed. There are a couple of issues with configuration as code, but that's relating to, I think, the image. That's all been fixed now, so the documentation's looking quite nice.

Спикер A2:33

Yeah, so basically we migrated around 30 plugins by now. And the total number of plugins using GitHub is up to 50.

So yeah, it's a nice progress in the Jenkins ecosystem. If you maintain plugins, consider migrating because, yeah, you can get rid of Wiki almost.

Спикер B2:56

Nice. Yeah, I don't, I don't use it at all. How do you know that? How many plugins use GitHub for the documentation?

Спикер A3:04

I can show. So I would need to share the screen, though. Okay, do you see my screen?

Спикер B3:15

Yeah.

Спикер C3:15

Yay!

Спикер A3:17

So yeah, it's a part of Jenkins Update Site logic. So we have a repository, update-center-2. This is the codebase which basically generates Jenkins Update Site, and it's also being used by third parties. You can basically use it for internal hosting. For example, Rake uses it for internal stuff. There are other projects like Giuseppe, but our plugin side basically uses Jenkins Update Center as a source of information.

In addition to common metadata, there are also a few files being generated, and one file is documentation URLs. Right. It's a JSON file which exists specifically for the update site. And here, well, yeah, there is no prettify option. So bear with that. But if you want to know how many plugins use GitHub, you can just search.

So you can see that now there are 50 here. It lists only released plugins. We have many plugins which were migrated to GitHub but haven't been released yet. So yeah, these changes are pending. But yeah, here you can discover 50 plugins. Most of them will work. So basically, if you end with just— if you just put your repository URL, it will work. If you put something else, there are some examples where custom links are being used.

For example, here Pragma references to whatever cool, I have no idea what it is. Or there is, for example, Chef plugin which uses Mediaset Chef plugin, so it will be also ignored because it uses another GitHub organization. It's not supported right now. But yeah, most of the plugins here which are listed actually get deployed and visualized by the plugin site. So that's how you discover that.

And yeah, if you look for configuration as code, you can see that we have some plugins. One is the configuration as code plugin. It references GitHub. Configuration as code Groovy, configuration as code Secret SSM, and configuration as code support basically reference nothing. So if you go to these plugin pages, you will just see wiki. We can try.

Спикер B5:44

Or nothing.

Спикер A5:45

Or nothing. Well, it depends on whether the plugin side is able to find the VK. Well, they definitely cannot.

So probably it's one of the improvement opportunities for us because, well, I wouldn't say that this documentation is extensive, but at least it's some documentation.

Спикер B6:08

Yeah, it's better than what's there now.

Спикер A6:11

Yeah. So, yeah, it's something which anybody could contribute to the JCasca system just by defining things, so these pages start working. Okay,

Спикер B6:24

Cool.

6:25

4. Plugin Deprecation, Warnings and Uninstall Ideas

Спикер A6:25

Any other questions about the plugin side? No. Okay, yeah, configuration as code support is maybe a separate story because, yeah, I guess it depends on Joseph's fix for deprecating plugins.

Because once we have an engine for deprecating plugins, I can also reflect it on the plugin side. Currently, if you go to this site, you would—oh, basically there is nothing. Well, there is a deprecated label here, but yeah, that's it.

Yeah, we could improve it a bit later.

Спикер B7:10

Publish the documentation that says do not use this.

Спикер A7:13

That's one option. Another option is to just check this label and put a really big warning here.

Спикер B7:22

Yeah.

Спикер C7:22

Or have the deprecation engine support that.

Спикер B7:26

the

Спикер C7:26

Plugin site knows that it should display a warning. Yeah, it does for security.

Спикер A7:31

Well, it's pretty easy. So if it's a deprecated label, even without any additional logic, I can display a warning here. I will actually create a follow-up ticket for that because it seems to be a good improvement.

Спикер C7:46

For the plugin site, definitely, yes.

Спикер A7:49

Yeah, we still need to fix the updates center, but the plugin site would be also nice.

Anyway, it's going down, so it's 300 installations less than it was in May.

So yeah, we are doing good progress there.

Спикер C8:07

Well, with the— hopefully with the deprecation engine, I would like to support, like, automatic uninstall when the version matrix is correct. Like, I hope we can have some version matrix that then just auto-installs if it detects all the right versions are, like, installed and gets rid of, like, the support plugin, for instance.

Спикер A8:27

Makes sense. Okay, so yeah, I'll probably just stop sharing the screen so that we return to common agenda.

8:37

5. Pending Compatibility Fixes and Plugin Releases

Спикер B8:37

Cool. And we have one pending change, which is an enhancement for allowing check for null to override parameters that are non-null by default. I suppose it was done for the SonarQube plugin, which has a compatibility issue right now, and to allow that plugin to be fixed in an easier way. It's pending release at the moment.

I may release it today, but just catch up with that later on.

Plugin site updates: recent compatibility fixes. The Mailer plugin has just had a new version out, which fixed all of the issues with it, I believe.

Спикер A9:26

Yeah, so the plugin is fully compatible with G-Class now.

Спикер B9:30

Cool. Security whitelist filter, is that script security or something else?

Спикер A9:38

No, it's something else. Yeah, it's a request whitelist filter that I'll implement regarding script security and full request data approvals, for which we are waiting for maintenance to be released and to work on that.

9:57

6. Opening and plugin status

Спикер B9:57

Something very wrong with your mic, Oleg, if you're not aware.

Спикер A10:00

Sorry?

Спикер B10:01

There's something very wrong with your mic.

Спикер A10:03

Yeah, that's part I heard. I apologize for the fact that something is wrong. Okay, I'll use different headphones next time.

Спикер B10:14

Yeah, script security looks very close to being merged. It's been pending for a very long time.

Спикер A10:19

Yeah, right. Am I missing any other plugins?

Спикер B10:23

Uh,

Спикер A10:23

Yeah, I'm subscribed to the dashboard, but I haven't looked, uh, for the meeting.

Спикер B10:31

Yeah, I've got a pull request for the build monitor plugin, but it seems abandoned. It's also not in the Jenkins CI org as well, which makes it more difficult.

Спикер A10:44

Yeah, yeah.

10:49

7. JSON Schema, JKS-to-BOM and release items

Спикер B10:49

I think that's,

Спикер A10:51

Uh,

Спикер B10:51

It's the one I'm aware of anyway. Um, ongoing development. So we've already discussed JKS to BOM. Um, we just need their release on SSH slaves, which he said he would do this week.

Uh, GitHub documentation, we've already discussed. JSON schema. So Sladen has got a pull request for that, which is working. In the current approach, it works to at least validate types, and it's a schema that's not broken, which is a lot better than what we currently have.

Doesn't— oh yeah, this is the right pull request. So that's pending review. I've reviewed it, and I'm happy enough with it. If we can get it merged soon, there's more work to be done, but we just need to decide whether we're going to link to the schema in this version or whether we add that later. Currently, it's not linked to anywhere. You have to know the URL.

Um, the pull request is not that large, but it would be good so that we can merge it soon and iterate on it.

Спикер A11:58

Yeah, I would rather merge it as soon as possible. Because, yeah, basically there is a parallel pull request which marks JSON schema as a beta feature. Yeah, it means that it gives us enough freedom, basically, to place it as we wish. But in the current state, it is unusable anyway. So I'm perfectly fine with a half-made feature if this half works better than the current state.

Спикер B12:23

Yeah, so it certainly works better than the completely broken one. I think, yeah, the only comment is, do we want to change the link to point to this one now, or do we want to just leave it unlinked in this pull request?

Спикер A12:37

So, if you feel the current schema is better than—well, the new schema is better than the current schema, just replace it.

Спикер B12:48

Yeah, I think so.

12:50

8. System read pull request and compatibility

Спикер C12:50

I think so too, yeah. Just replace it.

Спикер A12:54

Okay.

Спикер B12:54

Okay, well, we'll catch up with Sladen after this, and he can watch the recording as well. Hopefully, we can get this merged this week.

Спикер A13:01

Okay, plus one.

Спикер B13:06

So we've got the system read pull request, which is, um, hasn't really had any changes since I think Daniel Beck's the only one who's reviewed it slightly. Not sure what we can do to get that moving along.

Спикер A13:25

Yeah, I can take a look to get it over the line. So basically, we will heads down with the new LCS cutoff because here we've got, well, 2 or 3 regressions to process.

But yeah, I think that this pull request also can move ahead. So it definitely improves the situation. You need to look at the compatibility concerns, but yeah, the rest is more or less fine.

Yeah, I also linked to the read-only system configuration plugin, which was created by Red Hat a while ago. Did you have a chance to look at it?

Спикер B14:06

Yeah, I have looked at it. It parses the jelly and rewrites the jelly before passing it to the user. Mm-hmm. And I know Baptiste has said that—I think it was Baptiste—when they were doing some compatibility work, it affected that plugin.

And when he tried to use that plugin, he couldn't get it working in certain situations. So I'm not sure how complete it is. I'm not sure how many installs it has. Read-only Jenkins. Not that one.

14:49

9. Read-only system plugin and Permission API

Спикер B14:49

Do you know what the name of the plugin is?

Спикер A14:52

Yeah, I'm looking for it right now because I also forgot the link.

Спикер B14:57

Yeah, it's this one. I had seen it before. I looked at it before I started on, um, the pull requests.

Спикер A15:13

It's got

Спикер B15:13

1,000 installs and last released 5 years ago.

Спикер C15:21

No, thank you.

Спикер B15:26

Yeah, I haven't tested it myself, but I suspect it doesn't work or doesn't work completely.

Спикер A15:34

Yeah, right, it uses ancient core. So yeah, why I brought it up, just to understand whether it makes sense to use it as a base, for example, for the permission plugin. I mean, that's the additional plugin we use to apply reflection magic and offer APIs for all the core dependencies.

So yeah, if we, if this plugin is not suitable, we can just move on. And yeah, once the story is done, hopefully this plugin can be considered as deprecated.

Спикер B16:12

Yeah, yeah, yeah, definitely would be deprecated.

16:17

10. Plugin permission API and micro-plugin discussion

Спикер B16:17

There's the only API in this plugin. It just tries to look up the permission. So just, yeah, just links to a system read permission. It tries to look it up, and if it doesn't exist, it falls back to administrator.

Спикер A16:44

Which is exactly what we need to offer APIs to consumers. So, I guess, yeah, such micro plugin is perfectly fine.

Спикер B16:57

Yeah, yeah, it's very simple.

Спикер A17:00

Yeah, having the part of something would be nice, but yeah, whatever.

Спикер B17:10

Yeah, while I'm here.

Спикер A17:15

Okay,

Спикер B17:15

Cool.

Спикер A17:15

Yeah, I'll try to take a look at the Jenkins pull request this week.

Спикер B17:22

Cool. There was a comment here from—I think this was just copied up from last time—about a DevList thread. I'm not sure exactly what was going to be on there.

Спикер A17:31

Oh, well, nothing really happened.

So basically, the intention of this discussion was to discuss features we would like to have in the Jenkins core by the next LTS baseline. We want to send this list to the developer community, so maybe we could facilitate some contributions there.

Yeah, this is the list we discussed at the last meeting. Basically, if somebody wants to add something to this list, then yeah, just do that.

18:05

11. Community updates and meeting logistics

Спикер B18:05

Cool, cool. They all look very useful. And we're skipping the Community Bridge updates because Sladen wasn't able to make it today. Cool. Has anyone got anything else?

Спикер A18:21

Well, nothing from me.

Yeah, one comment about Community Bridge. Please vote for the meeting times because we still don't have a regular meeting slot for JCasco Developer Tools. For me, it's really hard to find time every week.

Спикер B18:39

Yeah, if we can— I don't think I have a thing to vote on at the moment. I voted initially. I don't know if it's— I don't know if there's been a new one sent out. He sent a meeting invite for tomorrow that I can't make, so I've declined it.

Спикер A19:01

Okay. So let's see what we can do there.

Okay. Any other topics to discuss today? Anything from you, John?

Спикер D19:11

I'm just trying to get back up to speed. Been out of the loop for a long time. You guys hear me?

Спикер A19:21

Yep, I see you.

Спикер D19:22

Yeah, is there audio? Yep. Okay, cool. This is new headphones, so just first time I have to try to speak with them. I got nothing.

Спикер A19:37

Okay, so welcome back.

Спикер D19:41

Thank you.

Спикер A19:43

So maybe one additional topic to discuss while we are there.

19:49

12. Hacktoberfest announcement and overview

Спикер A19:49

So, on October 1st, we will have Hacktoberfest.

Yeah, so there is— well, if you don't mind, I'll share the screen for a second.

Спикер D20:02

Sure.

Спикер A20:04

Just to show— okay, not this button. Okay, do you see my screen? Yep. Yes, so there is an ongoing discussion about Octoberfest. It's pretty much like in the previous year. So from October 1st to October 30th, yeah, 31st, yeah, whatever, we will have Octoberfest.

So it will be an online hackathon where everybody is able to contribute. We also try to organize some on-site events. So, for example, there will be one event in Switzerland, one event in Munich, one event in China, and hopefully one event in Saint Petersburg. And if there are meetup organizers, we also invite you to do so.

What is specific to the Jenkins Configuration as Code project is that, yeah, last year we had the configuration as code plugin here on the list. At that point, we had only a few newbie-friendly tickets. But I think that this year we could have some more.

So, for example, this documentation migrations, whatever smaller features, or whatever integration tests. Or if somebody would be interested to just create a bunch of newbie-friendly tickets, it would be nice so that you could facilitate some contributions to the plugin.

So, yeah, that's why I wanted to bring it up. So if you have any ideas what could be done there, let's do that.

Спикер B22:05

I struggle with that. I find that JCasc isn't the most newbie-friendly plugin. It's very reflection-heavy and Jenkins internals-heavy.

Спикер A22:16

You're right. But, for example, integration tests or something like that. Yeah.

Спикер B22:25

Yeah.

Спикер A22:26

Hard to say. Some bits could be done. So, yeah, if you have any ideas, or maybe just creating demos. I'm not sure, this folder seems to be pretty useful according to traffic stats.

22:42

13. Demos and Pull Request Discussion

Спикер A22:42

So maybe we could just suggest creating new demos for plugins where we have issues often. So, yeah.

Спикер C22:52

There is a nice work-in-progress pull request that actually tries to consume these demos from the integration plugin now.

Спикер B22:59

Yes, I was just about to mention that. There's an annotation configured with demo, which pulls the integration test config from the demos folder rather than the classpath.

Спикер A23:11

Yeah, it's the pull request from Victor Martinez, I guess. This one?

Спикер B23:16

Yeah, but the new one at the top is—

Спикер A23:19

Yeah.

Спикер C23:23

All the way up top.

Спикер A23:24

Oh, okay. Yeah, that one is cool. So yeah, I definitely need to take a look at that.

23:33

14. Hacktoberfest, Issue Labels, and Jira Filters

Спикер A23:33

But yeah, originally it started as a Hacktoberfest last year, which we had in Nice. So maybe this Hacktoberfest we could get it over the line.

So yeah, it doesn't necessarily have to be newbie-friendly. Newbie-friendly tickets are kind of an addition, but there is a chance that we will have experienced contributors as well.

Спикер B24:02

Yeah, there's probably a few we can stick Hacktoberfest— is it Hacktoberfest labels or newbie-friendly, or both?

Спикер A24:10

So last year, we were just relying on this list. So, GitHub issues, Jira query.

So let's see what we have in the list now. Recommend how to add a description to Jenkins Maven build. Okay, but yeah, definitely could be more. And definitely could be more here.

So yeah, the filter in Jira is JCas compatibility, DevTools compatibility, or anything in components. So, for example, when I create tickets to move documentation to GitHub for this plugin, they will appear here, and they will be definitely in the Defender.

But yeah, having more issues would make sense. So yeah, if you have something in mind, please don't hesitate to just create them.

25:16

15. Meeting Closing and Next Steps

Спикер A25:16

Okay. So yeah, thanks for your time.

Спикер B25:28

Thank you.

Спикер A25:28

Okay, thank you, and we'll see you in 2 weeks. I'll stop the recording.

Спикер D25:35

Bye, guys.