rocket-chip icon indicating copy to clipboard operation
rocket-chip copied to clipboard

Move diplomacy to standalone library absorbing aop

Open lordspacehog opened this issue 1 year ago • 8 comments

Related issue: https://github.com/chipsalliance/rocket-chip/issues/3037

Type of change: other enhancement

Impact: API Deprecation in favor of standalone diplomacy

Development Phase: implementation

Release Notes Splits out the aop and diplomacy modules into a standalone library. Adds the new library as a dependency and updates the in-tree diplomacy and aop modules to reference the new library with deprecation warnings.

lordspacehog avatar Feb 19 '24 18:02 lordspacehog

Very nice, I greatly appreciate the effort to preserve the deprecated package paths.

jerryz123 avatar Feb 23 '24 00:02 jerryz123

yeah, I mostly followed the lead of @sequencer and attempted to capture as minimal of a change as possible for this initial split. I also have other PRs ready to go that update each of the individual modules internally to use the new diplomacy library directly.

I've also run tests locally and everything seems to be passing without issue. so this should be ready for review.

lordspacehog avatar Feb 23 '24 00:02 lordspacehog

@lordspacehog Can you give me an small memo on how to split the diplomacy, I used to have my own way, and I need to verify your version to carefully review it:)

sequencer avatar Feb 25 '24 06:02 sequencer

@sequencer This new diplomacy split is a new history pull from rocket-chip/dev using git filter-repo (https://github.com/newren/git-filter-repo). You should either force push over your local master or use a different branch name pointed to the new history for now.

The exact process i used was as follows:

  1. Fork sequencer/diplomacy
  2. clean checkout rocket-chip/dev in new folder.
  3. use git filter-repo to prune all history unrelated to the changes to the diplomacy module.
  4. add my diplomacy fork as upstream and push new history to main branch
  5. move master branch to master-archive and set main as the default branch

From there i manually went through and reconciled the changes between your diplomacy repo, the main chipsalliance diplomacy repo, and the changes that happened directly in the rocket-chip repo.

lordspacehog avatar Feb 26 '24 22:02 lordspacehog

@lordspacehog I sent u an invitation, please directly push to a branch to chipsalliance/diplomacy, and I can take a look ;p

sequencer avatar Feb 28 '24 05:02 sequencer

@sequencer accepted the invite, but it looks like i don't have push access to the repo, only triage. if you can update that i'll get a branch pushed ASAP. i'll also stage an update to this PR to set that new branch as the submodule target.

lordspacehog avatar Feb 28 '24 16:02 lordspacehog

@sequencer accepted the invite, but it looks like i don't have push access to the repo, only triage. if you can update that i'll get a branch pushed ASAP. i'll also stage an update to this PR to set that new branch as the submodule target.

Access granted.

sequencer avatar Feb 28 '24 17:02 sequencer

@sequencer pushed, https://github.com/chipsalliance/diplomacy/tree/lordspacehog/standalone_diplomacy

lordspacehog avatar Feb 28 '24 18:02 lordspacehog

cc @lordspacehog, I reviewed and pushed the master branch to https://github.com/chipsalliance/diplomacy. please set that as upstream and go though CI;p

sequencer avatar Mar 06 '24 12:03 sequencer

@sequencer updated the submodule reference.

lordspacehog avatar Mar 06 '24 17:03 lordspacehog

it might have additional things to clean up. Merge it for now. I’ll take care of them later this week

sequencer avatar Mar 08 '24 04:03 sequencer