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

RecordsFilter should filter out accessors #1393

Merged
merged 20 commits into from Feb 6, 2023
Merged

RecordsFilter should filter out accessors #1393

merged 20 commits into from Feb 6, 2023

Conversation

ice1000
Copy link
Contributor

@ice1000 ice1000 commented Jan 18, 2023

This PR fixes #1215, but it's not tested. I need help on authoring tests.

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 19, 2023

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project org.jacoco.core.test.validation.java16: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/vsts/work/1/s/org.jacoco.core.test.validation.java16/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project org.jacoco.core.test.validation.java16: There are test failures.

Please refer to /home/vsts/work/1/s/org.jacoco.core.test.validation.java16/target/surefire-reports for the individual test results.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

Test reports??

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 19, 2023

Tried to fix, let's see what happens...

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 19, 2023

Nice!! All tests passed.

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 28, 2023

@marchof I'm done, please retake a look!

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 28, 2023

The CI is failing for unknown reasons.

image

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 28, 2023

Starting: Setup JDK
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.214.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash /home/vsts/work/_temp/cef2ae88-bd3a-416e-a0d6-c49f098fa19b.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  7073  100  7073    0     0   4724      0  0:00:01  0:00:01 --:--:--  4724

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
##[error]Bash exited with code '2'.
Finishing: Setup JDK

@marchof
Copy link
Member

marchof commented Jan 31, 2023

@ice1000 Our CI (and the internet in general) is a bit flaky. Sometime JDK downloads do fail. As you have green builds for most of the JDKs don't worry for now. With your next commit it will probably work again.

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 31, 2023

@ice1000 Our CI (and the internet in general) is a bit flaky. Sometime JDK downloads do fail. As you have green builds for most of the JDKs don't worry for now. With your next commit it will probably work again.

Do you expect a next commit? Is there anything else I can do to get this merged? 🔮

@marchof
Copy link
Member

marchof commented Jan 31, 2023

@ice1000 We need more commits to finalize this: Can you please add unit test to RecordsFilterTest. You find lots of unit tests in the same package that you can use as reference.

@ice1000
Copy link
Contributor Author

ice1000 commented Jan 31, 2023

@marchof what do you think about the new two tests I've added? Do I need more?

@ice1000
Copy link
Contributor Author

ice1000 commented Feb 1, 2023

@marchof done! I'm adding one more "should_not" test....

@ice1000
Copy link
Contributor Author

ice1000 commented Feb 1, 2023

image

Nice!!!

@marchof
Copy link
Member

marchof commented Feb 2, 2023

Looks good now! I would like to fix the change log. Can you please give me write access to your fork? See

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork

@marchof
Copy link
Member

marchof commented Feb 2, 2023

Alternatively please add the following block to changes.html (as the last point under New Features:

  <li>Component accessors generated by the Java compilers for records are filtered
      out during generation of report. Contributed by Tesla Zhang‮
      (GitHub <a href="https://github.com/jacoco/jacoco/issues/1393">#1393</a>).</li>

@ice1000
Copy link
Contributor Author

ice1000 commented Feb 2, 2023

I don't see the button in the tutorial. I invited you as a collaborator: https://github.com/ice1k/jacoco/invitations

@marchof
Copy link
Member

marchof commented Feb 3, 2023

I don't see the button in the tutorial. I invited you as a collaborator: https://github.com/ice1k/jacoco/invitations

Probably this is because the repository belongs to a different user (ice1000 vs ice1k). As a collaborator I was now able to push.

@ice1000
Copy link
Contributor Author

ice1000 commented Feb 3, 2023

Merge?

@marchof marchof requested a review from Godin February 3, 2023 06:54
@marchof
Copy link
Member

marchof commented Feb 3, 2023

@Godin Can you please have a look?

@marchof
Copy link
Member

marchof commented Feb 3, 2023

Merge?

Not yet, a second committer (@Godin) will now do the final review.

@Godin Godin added this to Awaiting triage in Filtering via automation Feb 5, 2023
@Godin Godin added this to the 0.8.9 milestone Feb 5, 2023
@Godin Godin added this to Implementation in Current work items via automation Feb 5, 2023
@Godin Godin moved this from Implementation to Review in Current work items Feb 5, 2023
@Godin Godin moved this from Awaiting triage to In Progress in Filtering Feb 5, 2023
@ice1000
Copy link
Contributor Author

ice1000 commented Feb 5, 2023

@Godin all done, please retake a look!

@ice1000
Copy link
Contributor Author

ice1000 commented Feb 6, 2023

ping 👻

@Godin
Copy link
Member

Godin commented Feb 6, 2023

@ice1000 We are working on this project in our spare time when we have it. We will appreciate it if you'll let us manage our time by ourselves - no need to send pings.

@Godin Godin changed the title Implement filter for record field accessors! (#1215) RecordsFilter should filter out accessors Feb 6, 2023
@Godin Godin merged commit 77d7418 into jacoco:master Feb 6, 2023
Filtering automation moved this from In Progress to Done Feb 6, 2023
Current work items automation moved this from Review to Done Feb 6, 2023
@forresthopkinsa
Copy link

You love to see it. Thanks for the work folks

ndwnu pushed a commit to ndwnu/nls-routing-map-matcher that referenced this pull request Apr 10, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [org.apache.maven.plugins:maven-compiler-plugin](https://maven.apache.org/plugins/) | build | minor | `3.10.1` -> `3.11.0` |
| [org.jacoco:jacoco-maven-plugin](https://www.jacoco.org/jacoco/trunk/doc/maven.html) ([source](https://github.com/jacoco/jacoco)) | build | patch | `0.8.8` -> `0.8.10` |
| [com.graphhopper:graphhopper-map-matching](https://www.graphhopper.com) ([source](https://github.com/graphhopper/graphhopper)) | compile | patch | `7.0` -> `7.0-testgithub6` |
| [com.graphhopper:graphhopper-core](https://www.graphhopper.com) ([source](https://github.com/graphhopper/graphhopper)) | compile | patch | `7.0` -> `7.0-testgithub6` |
| [org.springframework.boot:spring-boot-starter-parent](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | patch | `3.0.5` -> `3.0.6` |

---

### Release Notes

<details>
<summary>jacoco/jacoco</summary>

### [`v0.8.10`](https://github.com/jacoco/jacoco/releases/tag/v0.8.10): 0.8.10

[Compare Source](jacoco/jacoco@v0.8.9...v0.8.10)

#### Fixed bugs

-   Agent should not require configuration of permissions for `SecurityManager` outside of its `codeBase` (GitHub [#&#8203;1425](jacoco/jacoco#1425)).

### [`v0.8.9`](https://github.com/jacoco/jacoco/releases/tag/v0.8.9): 0.8.9

[Compare Source](jacoco/jacoco@v0.8.8...v0.8.9)

#### New Features

-   JaCoCo now officially supports Java 19 and 20 (GitHub [#&#8203;1371](jacoco/jacoco#1371), [#&#8203;1386](jacoco/jacoco#1386)).
-   Experimental support for Java 21 class files (GitHub [#&#8203;1386](jacoco/jacoco#1386)).
-   Add parameter to include the current project in the `report-aggregate` Maven goal (GitHub [#&#8203;1007](jacoco/jacoco#1007)).
-   Component accessors generated by the Java compilers for records are filtered out during generation of report. Contributed by Tesla Zhang (GitHub [#&#8203;1393](jacoco/jacoco#1393)).

#### Fixed bugs

-   Agent should not open `java.lang` package to unnamed module of the application class loader (GitHub [#&#8203;1334](jacoco/jacoco#1334)).

#### Non-functional Changes

-   JaCoCo now depends on ASM 9.5 (GitHub [#&#8203;1299](jacoco/jacoco#1299), [#&#8203;1368](jacoco/jacoco#1368), [#&#8203;1416](jacoco/jacoco#1416)).
-   JaCoCo build now requires JDK 11 (GitHub [#&#8203;1413](jacoco/jacoco#1413)).

</details>

<details>
<summary>graphhopper/graphhopper</summary>

### [`v7.0-pre2`](graphhopper/graphhopper@7.0-pre1...7.0-pre2)

[Compare Source](graphhopper/graphhopper@7.0-pre1...7.0-pre2...
ndwlocatieservices added a commit to ndwnu/nls-routing-map-matcher that referenced this pull request Apr 16, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [org.apache.maven.plugins:maven-compiler-plugin](https://maven.apache.org/plugins/) | build | minor | `3.10.1` -> `3.11.0` |
| [org.jacoco:jacoco-maven-plugin](https://www.jacoco.org/jacoco/trunk/doc/maven.html) ([source](https://github.com/jacoco/jacoco)) | build | patch | `0.8.8` -> `0.8.10` |
| [com.graphhopper:graphhopper-map-matching](https://www.graphhopper.com) ([source](https://github.com/graphhopper/graphhopper)) | compile | patch | `7.0` -> `7.0-testgithub6` |
| [com.graphhopper:graphhopper-core](https://www.graphhopper.com) ([source](https://github.com/graphhopper/graphhopper)) | compile | patch | `7.0` -> `7.0-testgithub6` |
| [org.springframework.boot:spring-boot-starter-parent](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | patch | `3.0.5` -> `3.0.6` |

---

### Release Notes

<details>
<summary>jacoco/jacoco</summary>

### [`v0.8.10`](https://github.com/jacoco/jacoco/releases/tag/v0.8.10): 0.8.10

[Compare Source](jacoco/jacoco@v0.8.9...v0.8.10)

#### Fixed bugs

-   Agent should not require configuration of permissions for `SecurityManager` outside of its `codeBase` (GitHub [#&#8203;1425](jacoco/jacoco#1425)).

### [`v0.8.9`](https://github.com/jacoco/jacoco/releases/tag/v0.8.9): 0.8.9

[Compare Source](jacoco/jacoco@v0.8.8...v0.8.9)

#### New Features

-   JaCoCo now officially supports Java 19 and 20 (GitHub [#&#8203;1371](jacoco/jacoco#1371), [#&#8203;1386](jacoco/jacoco#1386)).
-   Experimental support for Java 21 class files (GitHub [#&#8203;1386](jacoco/jacoco#1386)).
-   Add parameter to include the current project in the `report-aggregate` Maven goal (GitHub [#&#8203;1007](jacoco/jacoco#1007)).
-   Component accessors generated by the Java compilers for records are filtered out during generation of report. Contributed by Tesla Zhang (GitHub [#&#8203;1393](jacoco/jacoco#1393)).

#### Fixed bugs

-   Agent should not open `java.lang` package to unnamed module of the application class loader (GitHub [#&#8203;1334](jacoco/jacoco#1334)).

#### Non-functional Changes

-   JaCoCo now depends on ASM 9.5 (GitHub [#&#8203;1299](jacoco/jacoco#1299), [#&#8203;1368](jacoco/jacoco#1368), [#&#8203;1416](jacoco/jacoco#1416)).
-   JaCoCo build now requires JDK 11 (GitHub [#&#8203;1413](jacoco/jacoco#1413)).

</details>

<details>
<summary>graphhopper/graphhopper</summary>

### [`v7.0-pre2`](graphhopper/graphhopper@7.0-pre1...7.0-pre2)

[Compare Source](graphhopper/graphhopper@7.0-pre1...7.0-pre2...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Filtering
  
Done
Development

Successfully merging this pull request may close these issues.

Filter of Java 16 record accessors
4 participants