GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [doc] Add architecture decision records by adangel · Pull Request #4072 · pmd/pmd

Conversation

@adangel

@adangel adangel commented Jul 28, 2022

Copy link
Copy Markdown
Member

Describe the PR

This is a first draft on adding explicit decision records to our project.
It came up as a question in #3766 about Kotlin usage.

I'm not sure in what details we would need to describe the decisions or which decisions at all. I guess, we need to learn this over time.

Feel free to give feedback or ask questions - the goal is to have the decision records as an agreement and understandable by everybody.

I've integrated these into the doc site, they appear under "Project documentation":
grafik

But since these documents are simple markdown files, they can also be seen directly on github.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
adangel added 2 commits July 28, 2022 11:55
@adangel
[doc] Add proposal for architecture decision records
68eaf06
@adangel
[doc] Add "ADR 2 - Policy on the use of Kotlin for development"
cbbe0e0
@adangel adangel added in:documentation Affects the documentation [doc] a:RFC A drafted proposal on changes to PMD, up for feedback form the team and community labels Jul 28, 2022
adangel
adangel commented Jul 28, 2022
View reviewed changes
Comment thread docs/pages/pmd/projectdocs/decisions.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-1.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-1.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-1.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel changed the title [doc] Add architecture decision records [RFC] [doc] Add architecture decision records Jul 28, 2022
adangel
adangel commented Jul 28, 2022
View reviewed changes
Comment thread docs/pages/pmd/projectdocs/decisions/adr-1.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Jul 28, 2022

Copy link
Copy Markdown
1 Message
📖 No regression tested rules have been changed.

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel mentioned this pull request Jul 28, 2022
[doc] Provide a high-level overview of PMD's building blocks #2517
Open
adangel
adangel commented Jul 28, 2022
View reviewed changes
Comment thread docs/pages/pmd/projectdocs/decisions/adr-2.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala

oowekyala commented Jul 29, 2022

Copy link
Copy Markdown
Member

This is a great idea!

I have a few questions/ topics for general discussion. I'll add my comments to the kotlin ADR as review comments

  • What is the process to accept an ADR? In this PR the new ADRs have status "proposed". Is maintainer consensus enough to make them "accepted"?
  • What's the process to challenge or amend an ADR? Open a GH issue maybe? A PR editing the ADR?

I think we should document these processes in ADR 0... Or at least sketch the expected "lifecycle" of an ADR, with different statuses

I'm wondering about the scope of ADRs. Do "architecture decisions" include eg proposals for large features (like eg JEPs)? Is there a difference with RFC issues? Maybe issues are more implementation related.

Would the following be appropriate topics for ADRs, or am I missing the point:

  • policy on rule contributions (criteria for inclusion and quality standards)
  • policy on language module contributions (same)
  • binary compatibility guarantees (including describing internal packages and @InternalApi)
  • code of conduct
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

oowekyala
oowekyala reviewed Jul 29, 2022
View reviewed changes
Comment thread docs/pages/pmd/projectdocs/decisions/adr-2.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-2.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-2.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala oowekyala mentioned this pull request Aug 29, 2022
[core] Use PicoCli and unify PMD usage under a single main #4059
Merged
15 of 16 tasks
@adangel
[doc] Update ADRs from PR review comments
8984545
@adangel

adangel commented Sep 6, 2022

Copy link
Copy Markdown
Member Author

This is a great idea!

I have a few questions/ topics for general discussion. I'll add my comments to the kotlin ADR as review comments

  • What is the process to accept an ADR? In this PR the new ADRs have status "proposed". Is maintainer consensus enough to make them "accepted"?
  • What's the process to challenge or amend an ADR? Open a GH issue maybe? A PR editing the ADR?

I think we should document these processes in ADR 0... Or at least sketch the expected "lifecycle" of an ADR, with different statuses

Good points - I've added a short description what I think could work in the ADR-1. Basically we use PRs to propose new ADRs and modify existing ADRs.
I've not sketched a complete lifecycle, though, just a short description in the "Decision" section.

I'm wondering about the scope of ADRs. Do "architecture decisions" include eg proposals for large features (like eg JEPs)? Is there a difference with RFC issues? Maybe issues are more implementation related.

Hm... I don't think, that large features should be written as ADRs. A feature sounds too specific for me. Maybe if we can come up with a general direction of what PMD should be or shouldn't be, that might be an ADR. E.g. (don't take these examples serious... 😄 ) "PMD will concentrate the work on the core functions needed for static analysis. Any integration into plugins, tools, etc. is out of scope for the project" or "PMD won't use GitHub anymore, because it is not open source" or "PMD will only support languages where free tooling is available" or "PMD will drop support for Windows".

RFC issues... I could imagine, that an ADR could originate from an RFC issue. So that the discussion on the issue leads us to writing the result down as an ADR.

If issues are implementation related, that could be too specific for an ADR.

Would the following be appropriate topics for ADRs, or am I missing the point:

  • policy on rule contributions (criteria for inclusion and quality standards)
  • policy on language module contributions (same)
  • binary compatibility guarantees (including describing internal packages and @InternalApi)
  • code of conduct

I think, these are all good examples for ADRs. I'd say it's a bit of a mixture of architecture and processes (policies).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@adangel adangel added this to the 6.50.0 milestone Sep 6, 2022
adangel
adangel commented Sep 30, 2022
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'll proceed now and mark our first two ADRs as "Accepted".

Keep in mind, we can still change these decisions - they are not cut in stone.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread docs/pages/pmd/projectdocs/decisions/adr-1.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-1.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-2.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/pages/pmd/projectdocs/decisions/adr-2.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@adangel
[doc] Accept ADR-1 and ADR-2
d7de6f5
@adangel adangel changed the title [RFC] [doc] Add architecture decision records [doc] Add architecture decision records Sep 30, 2022
@adangel
adangel merged commit d7de6f5 into pmd:master Sep 30, 2022
adangel added a commit to adangel/pmd that referenced this pull request Sep 30, 2022
@adangel
[doc] Update release notes (pmd#4072)
398d05c
adangel added a commit to adangel/pmd that referenced this pull request Sep 30, 2022
@adangel
Merge pull request pmd#4072 from adangel:doc-adr
be87135
[doc] Add architecture decision records pmd#4072
@adangel
adangel deleted the doc-adr branch September 30, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@oowekyala oowekyala oowekyala left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

a:RFC A drafted proposal on changes to PMD, up for feedback form the team and community in:documentation Affects the documentation [doc]

Projects

None yet

Milestone

6.50.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@adangel @oowekyala
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.