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(ci): transform conformance snapshot include when output mismatch #5135

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Aug 23, 2024

Include "Output mismatch" in transform conformance snapshots when a test also fails due to scopes/symbols mismatches.

At present, many of the tests are failing on scopes/symbols mismatches, so it's hard to see from snapshots which also have an output mismatch. In particular, when working to fix scope mismatches, it's hard to notice if changes you make cause the output to be wrong. These extra messages make that visible.

Copy link
Contributor Author

overlookmotel commented Aug 23, 2024

@github-actions github-actions bot added the A-transformer Area - Transformer / Transpiler label Aug 23, 2024
Copy link

graphite-app bot commented Aug 23, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@overlookmotel overlookmotel marked this pull request as ready for review August 23, 2024 16:35
Copy link

codspeed-hq bot commented Aug 23, 2024

CodSpeed Performance Report

Merging #5135 will not alter performance

Comparing 08-23-refactor_ci_transform_conformance_snapshot_include_when_output_mismatch (eb71a32) with main (36e4a28)

Summary

✅ 29 untouched benchmarks

@Dunqing
Copy link
Member

Dunqing commented Aug 24, 2024

Personally, if the output doesn't match we shouldn't show the semantic errors.

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Aug 24, 2024
Copy link

graphite-app bot commented Aug 24, 2024

Merge activity

  • Aug 24, 12:50 AM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 24, 12:50 AM EDT: Boshen added this pull request to the Graphite merge queue.
  • Aug 24, 12:58 AM EDT: Boshen merged this pull request with the Graphite merge queue.

…atch (#5135)

Include "Output mismatch" in transform conformance snapshots when a test also fails due to scopes/symbols mismatches.

At present, many of the tests are failing on scopes/symbols mismatches, so it's hard to see from snapshots which also have an output mismatch. In particular, when working to fix scope mismatches, it's hard to notice if changes you make cause the output to be wrong. These extra messages make that visible.
@Boshen Boshen force-pushed the 08-23-fix_ci_transform_conformance_do_not_skip_any_errors branch from 7b9efba to be42b1c Compare August 24, 2024 04:52
@Boshen Boshen force-pushed the 08-23-refactor_ci_transform_conformance_snapshot_include_when_output_mismatch branch from dd31f0e to eb71a32 Compare August 24, 2024 04:52
Base automatically changed from 08-23-fix_ci_transform_conformance_do_not_skip_any_errors to main August 24, 2024 04:57
@graphite-app graphite-app bot merged commit eb71a32 into main Aug 24, 2024
25 checks passed
@graphite-app graphite-app bot deleted the 08-23-refactor_ci_transform_conformance_snapshot_include_when_output_mismatch branch August 24, 2024 04:58
@overlookmotel
Copy link
Contributor Author

overlookmotel commented Aug 24, 2024

@Dunqing Yes maybe that would be a better way to do it. Check that output matches first, and then only check that semantic is correct if the output match test passes. You think that'd work?

@Dunqing
Copy link
Member

Dunqing commented Aug 24, 2024

@Dunqing Yes maybe that would be a better way to do it. Check that output matches first, and then only check that semantic is correct if the output match test passes. You think that'd work?

Yes, I agree we do that. From my experience development of the transformer. When the output is matched, fixing semantic errors is not too hard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-transformer Area - Transformer / Transpiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants