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 YAML_Template to yaml module #1984

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Polber
Copy link
Contributor

@Polber Polber commented Nov 1, 2024

This PR refactors the organization of the Yaml_Template and its related files by creating a new yaml module.

This PR also adds a new workflow for triggering YAML-related tests separately. This will be useful as new ITs are added to keep from slowing down the workflow for Java PRs

@Polber Polber self-assigned this Nov 1, 2024
@Polber Polber force-pushed the jkinard/yaml-refactor branch from 59bb5c7 to 60803ae Compare November 1, 2024 19:21
@Polber Polber force-pushed the jkinard/yaml-refactor branch from 60803ae to 3bb3674 Compare November 1, 2024 19:24
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 45.26%. Comparing base (ba67089) to head (6ca0025).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
.../java/org/apache/beam/it/gcp/TemplateTestBase.java 0.00% 7 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1984      +/-   ##
============================================
- Coverage     45.27%   45.26%   -0.02%     
- Complexity     3632     3956     +324     
============================================
  Files           836      836              
  Lines         49872    49877       +5     
  Branches       5253     5255       +2     
============================================
- Hits          22579    22576       -3     
- Misses        25618    25627       +9     
+ Partials       1675     1674       -1     
Components Coverage Δ
spanner-templates 66.62% <ø> (ø)
spanner-import-export 64.18% <ø> (ø)
spanner-live-forward-migration 75.86% <ø> (ø)
spanner-live-reverse-replication 76.63% <ø> (ø)
spanner-bulk-migration 86.42% <ø> (ø)
Files with missing lines Coverage Δ
.../java/org/apache/beam/it/gcp/TemplateTestBase.java 0.00% <0.00%> (ø)

... and 3 files with indirect coverage changes

@Polber Polber force-pushed the jkinard/yaml-refactor branch 18 times, most recently from c682671 to 677650b Compare November 6, 2024 17:33
@Polber Polber requested a review from damccorm November 6, 2024 17:37
@Polber Polber force-pushed the jkinard/yaml-refactor branch from 677650b to 9486382 Compare November 6, 2024 17:38
@Polber Polber marked this pull request as ready for review November 6, 2024 17:38
Signed-off-by: Jeffrey Kinard <jeff@thekinards.com>
@Polber Polber force-pushed the jkinard/yaml-refactor branch from 9486382 to 6ca0025 Compare November 6, 2024 21:26
Comment on lines +23 to +32
paths:
- '**.java'
- '**.xml'
# Include python files and Dockerfiles used for YAML and xlang templates.
- '**.py'
- 'plugins/core-plugin/src/main/resources/**'
# Include relevant GitHub Action files for running these checks.
# This will make it easier to verify action changes don't break anything.
- '.github/actions/setup-env/*'
- '.github/workflows/java-pr.yml'
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we actually need all of these paths?

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this should be scoped to yaml

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, is this workflow a subset of the java-pr workflow? If so, we should get rid of the checkstyle/spotless checks below

flags.CloudProxyPostgresPort(),
flags.CloudProxyPassword(),
flags.UnifiedWorkerHarnessContainerImage(),
flags.CloudProxyPassword())
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this PR, but it seems like we're duplicating the same set of flags over and over; I think there's a big code deletion PR we could do where we refactor into a single location.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't take this as a "go and do this", though, I think in general I don't think we should be doing a ton of these cleanup PRs unless we can justify the time savings.

@@ -1,227 +0,0 @@

Kafka to BigQuery (YAML) template
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we get rid of the kafka pieces here?

# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we need this file anymore?

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.

2 participants