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

0.2.8 changes #279

Merged
merged 13 commits into from
Feb 20, 2023
Merged

0.2.8 changes #279

merged 13 commits into from
Feb 20, 2023

Conversation

norrisjeremy
Copy link
Contributor

@norrisjeremy norrisjeremy commented Feb 14, 2023

  • Update dependencies.
  • Add additional enforcer rules.
  • Remove unneeded junixsocket-native-common dependency.
  • Generate CycloneDX SBOM.
  • Allow manual dispatch of CI builds.
  • Fix CI builds with ubuntu-latest by deleting conflicting users & groups from container.
  • Capture maven version info during CI builds.
  • Only fork for error-prone where it's needed.
  • Define plugin verions and configuration in default build instead within profiles.
    • This will help dependabot, as I don't believe it will generate PRs for items that have their versions' only defined within a profile.
  • Drop compiler-annotations dependency by disabling classfile warnings.
  • Correct license name for JZlib so that it isn't misidentified in SBOM.

@norrisjeremy
Copy link
Contributor Author

Not sure why Github Actions isn't picking up the latest commits and attempting a fresh build?

@@ -5,6 +5,9 @@ RUN apk update && \
apk upgrade && \
apk add openssh su-exec && \
rm /var/cache/apk/* && \
if [ "$testuid" -gt 0 ]; then if egrep "^[^:]+:x:$testuid:" /etc/passwd; then deluser "$(egrep "^[^:]+:x:$testuid:" /etc/passwd | cut -d: -f1)"; fi; fi && \
if [ "$testgid" -gt 0 ]; then if egrep "^[^:]+:x:[^:]+:$testgid:" /etc/passwd; then deluser "$(egrep "^[^:]+:x:[^:]+:$testgid:" /etc/passwd | cut -d: -f1)"; fi; fi && \
if [ "$testgid" -gt 0 ]; then if egrep "^[^:]+:x:$testgid:" /etc/group; then delgroup "$(egrep "^[^:]+:x:$testgid:" /etc/group | cut -d: -f1)"; fi; fi && \
Copy link
Contributor Author

@norrisjeremy norrisjeremy Feb 15, 2023

Choose a reason for hiding this comment

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

The issue with the latest Ubuntu 22.04 based Github runners turned out to be that the user inside the Azure VM has a GID of 123, which conflicts with the built-in ntp group inside the Alpine container.
This causes the addgroup command below to fail, since it can't add a testuser group with the same GID.
The gross hack above is to check for any UID/GID conflicts inside the Alpine container and remove any conflicting users and/or groups.

pom.xml Outdated Show resolved Hide resolved
@@ -273,7 +277,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<fork>true</fork>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For whatever reason, maven-compiler-plugin sometimes doesn't display compiler warnings if it tries to fork a javac process.
So I removed it here and opted to just place it inside the errorprone profile, since we only need to fork when using errorprone.

@mwiede mwiede merged commit c903dff into mwiede:master Feb 20, 2023
@norrisjeremy norrisjeremy deleted the 20230214 branch February 20, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants