Skip to content

remove APIGen project #924

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

Merged
merged 4 commits into from
Aug 19, 2020
Merged

Conversation

bollhals
Copy link
Contributor

Proposed Changes

Removes the ApiGen project and brings code into separate files (resolves #742)

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue Re-consider per-build AMQP API generation #742)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

@bollhals
Copy link
Contributor Author

I have created a new PR for this, as it was too difficult to update the old one.

There are more changes coming for formatting and stuff (similar to original PR #877), which I'll add as separate commits.

@michaelklishin
Copy link
Contributor

@bording @danielmarbach @stebet @lukebakken @kjnilsson before I pull the trigger on this, any last minute objections to removing the API generator? The protocol doesn't change often but we do add things to it occasionally. I personally think it'd be a great simplification to the build system and the codebase, so we should do it, and maybe other clients will follow suit eventually. But maybe it's just me :)

@michaelklishin michaelklishin mentioned this pull request Aug 14, 2020
11 tasks
@danielmarbach
Copy link
Collaborator

I agree it can go. Makes it also simpler to understand and evolve if needed

@stebet
Copy link
Contributor

stebet commented Aug 14, 2020

I agree as well. Makes it simpler to build and make beneficial changes.

@bollhals
Copy link
Contributor Author

bollhals commented Aug 14, 2020

@reviewers, look at the actual changes made in the commits after the first one. The first is the removal of the project (split of the generated code into their own classes, and removal of the old generator project)

Changes:

  • I removed all I... interfaces (e.g. IBasicDeliver, IConfirmSelect) as they were not used at all anywhere.
  • I removed all AppendArgumentDebugStringTo methods, as they were not used at all anywhere
  • Unified rpc handling

@bollhals
Copy link
Contributor Author

Ok I think this is done from my side. This can be reviewed.

One thing that I saw was some simplifications around method / class id. I'll check this out in a separate PR.

@@ -1,5 +1,4 @@
@ECHO OFF
set DOTNET_CLI_TELEMETRY_OPTOUT=1
dotnet restore .\RabbitMQDotNetClient.sln
dotnet run -p .\projects\Apigen\Apigen.csproj --apiName:AMQP_0_9_1 .\projects\specs\amqp0-9-1.stripped.xml .\gensrc\autogenerated-api-0-9-1.cs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Build is still failing. Am I missing something or does this not have the desired effect?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I had to fix some scripts - #924 (comment)

@michaelklishin michaelklishin merged commit ab36f9b into rabbitmq:master Aug 19, 2020
@lukebakken lukebakken added this to the 7.0.0 milestone Aug 19, 2020
@lukebakken lukebakken self-assigned this Aug 19, 2020
@lukebakken
Copy link
Collaborator

@michaelklishin I just fixed up concourse to take this change into account. Thanks for reviewing and merging.

https://github.com/rabbitmq/rabbitmq-ci/commit/2d3e9680c2aafb79446437e486b7b2ad491c5901

@bollhals bollhals deleted the removeAPIGen branch August 19, 2020 17:46
@lukebakken lukebakken modified the milestones: 8.0.0, 7.0.0 Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-consider per-build AMQP API generation
5 participants