Skip to content
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

refactor(glue-alpha): glue L2 alpha construct #30833

Open
wants to merge 82 commits into
base: main
Choose a base branch
from

Conversation

natalie-white-aws
Copy link

@natalie-white-aws natalie-white-aws commented Jul 11, 2024

Issue # (if applicable)

RFC 0497-glue-l2-construct
Link: https://github.com/aws/aws-cdk-rfcs/blob/main/text/0497-glue-l2-construct.md

Reason for this change

Refactor existing Glue L2 alpha construct to adhere to CDK best practices, enforce Job types and parameters via interface constructs, and improve the developer experience pushing validations left and disallowing deprecated Glue and language versions.

Description of changes

The existing Job and Job Executable monoliths have been decomposed into Job Type and Language specific classes that implement and extend an abstract Job parent class. Developers will be able to see mandatory and optional parameters that apply just to their selected job type and language, rather than having to reference documentation and examples or find out during synth or deploy time that they've selected the wrong configuration.

BREAKING CHANGE: Developers must refactor their existing Job instantiation method calls to choose the right job type and language, and use the new constants static values to define the associated Job configuration settings. See the RFC and/or new README for examples.

Description of how you validated changes

We've added unit and integration tests for each valid job type and language combination and validated the creation of new Glue Jobs adhere to opinionated best practices such as continuous logging and runtime versions.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

natalie-white-aws and others added 30 commits February 23, 2024 06:04
…-glue-l2 to mjanardhan/aws-cdk-glue-l2 to resolve non-trivial merge situation
@natalie-white-aws
Copy link
Author

Finally fixed the build. You know, in my spare time. :) Thanks for your patience, everyone.

@GavinZZ
Copy link
Contributor

GavinZZ commented Nov 20, 2024

@natalie-white-aws thanks for fixing the failed build. There's still some more conflicts that need to be fixed. I'm happy to give it another pass once that's fixed.

@natalie-white-aws
Copy link
Author

natalie-white-aws commented Nov 21, 2024 via email

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

2 similar comments
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@GavinZZ
Copy link
Contributor

GavinZZ commented Nov 28, 2024

@natalie-white-aws I looked into it and I'm not sure how the conflicts happened... It's saying your change is conflict with #12506 from 3 years ago. I would recommend you to rebase your change.

The changes in this PR are massive making it extremely hard to review. I went through all the comments left by me and Paul previously and I saw that you've managed to address them mostly. I'll give it another pass this week but it's likely that I don't have any major concern and most feedback are minors so we can have those fixed in a follow-up PR.

Once you are able to manage to resolve the conflicts, we can coordinate to have this merged in.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

4 similar comments
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@natalie-white-aws
Copy link
Author

natalie-white-aws commented Dec 3, 2024

Figured out the source of the merge conflicts - they originated with #31830 Integrating them now.

…ed examples back to README, testing full build compilation.
@natalie-white-aws natalie-white-aws requested a review from a team as a code owner December 3, 2024 21:29
@natalie-white-aws
Copy link
Author

natalie-white-aws commented Dec 3, 2024

I rebased the glue-aplha-refactor branch to main and incorporated the changes made in PR 31830, but GitHub is still reporting that there are merge conflicts. @GavinZZ do you see a different status as someone who has write permissions to the aws-cdk core repo?

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: df3bb98
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@GavinZZ
Copy link
Contributor

GavinZZ commented Dec 4, 2024

I don't. I'm still seeing all the conflicts.. Might be good to try to open a new PR and branch off/rebase from latest main.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

2 similar comments
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@mazyu36 mazyu36 mentioned this pull request Dec 11, 2024
1 task
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

4 similar comments
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.