Skip to content

Fix mvn warnings #10909

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

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

Fix mvn warnings #10909

wants to merge 5 commits into from

Conversation

vishesh92
Copy link
Member

Description

This PR fixes the below warnings which appear while building cloudstack.

[WARNING] The following plugins are not marked as thread-safe in Apache CloudStack Client UI:                                                                                                 
[WARNING]   ru.concerteza.buildnumber:maven-jgit-buildnumber-plugin:1.2.6                                                                                                                     
[WARNING]                                                                                                                                                                                     
[WARNING] Enable debug to see precisely which goals are not marked as thread-safe. 

----

[WARNING] The following plugins are not marked @threadSafe in Apache CloudStack Developer Mode:
[WARNING] org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.

----

[WARNING] While downloading mysql:mysql-connector-java:8.0.33
  This artifact has been relocated to com.mysql:mysql-connector-j:8.0.33.
  MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates.

---

[INFO] --- exec:3.2.0:exec (package) @ cloud-marvin ---                                                                                                                                       
[WARNING] [stderr] /home/vishesh/lab/cloudstack/tools/marvin/mvn-setup.py:36: SyntaxWarning: invalid escape sequence '\s'                                                                     
[WARNING] [stderr]   needle = '\nVERSION\s*=\s*[\'"][^\'"]*[\'"]'                                                                                                                             
[WARNING] [stderr] Warning: 'platforms' should be a list, got type 'tuple'                                                                                                                    
[INFO] [stdout] running sdist                                                                                                                                                                 
[INFO] [stdout] running egg_info                                                                                                                                                              
[INFO] [stdout] writing Marvin.egg-info/PKG-INFO                                                                                                                                              
[INFO] [stdout] writing dependency_links to Marvin.egg-info/dependency_links.txt                                                                                                              
[INFO] [stdout] writing entry points to Marvin.egg-info/entry_points.txt                                                                                                                      
[INFO] [stdout] writing requirements to Marvin.egg-info/requires.txt
[INFO] [stdout] writing top-level names to Marvin.egg-info/top_level.txt
[INFO] [stdout] reading manifest template 'MANIFEST.in'
[WARNING] [stderr] warning: no files found matching '*.txt' under directory 'docs'
[INFO] [stdout] adding license file 'LICENSE.txt'
[INFO] [stdout] writing manifest file 'Marvin.egg-info/SOURCES.txt'
[INFO] [stdout] running check
[WARNING] [stderr] warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md
[WARNING] [stderr] 
[INFO] [stdout] creating marvin-

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@vishesh92
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR resolves various build-time warnings by updating plugin versions, correcting Python setup scripts, and aligning Maven coordinates for MySQL Connector/J. Key changes include:

  • Adjusted Python packaging scripts (setup.py, mvn-setup.py) to fix type and regex warnings.
  • Added a minimal README.md for the Marvin client.
  • Updated Maven plugin versions (properties-maven-plugin, buildnumber-maven-plugin) and migrated MySQL Connector to com.mysql:mysql-connector-j.

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/marvin/setup.py Switched platforms from tuple to list to satisfy setuptools.
tools/marvin/mvn-setup.py Made regex literal raw string to avoid invalid escape warning.
tools/marvin/README.md Added basic project README.
tools/devcloud4/pom.xml Bumped properties-maven-plugin to version 1.2.0.
tools/devcloud-kvm/pom.xml Bumped properties-maven-plugin to version 1.2.0.
pom.xml Rebased MySQL connector to com.mysql:mysql-connector-j and removed duplicate.
plugins/network-elements/tungsten/pom.xml Updated MySQL connector coordinates for test scope.
plugins/network-elements/globodns/pom.xml Updated MySQL connector coordinates for test scope.
framework/db/pom.xml Updated MySQL connector coordinates.
engine/storage/snapshot/pom.xml Updated MySQL connector coordinates.
developer/pom.xml Bumped properties-maven-plugin to version 1.2.0.
client/pom.xml Switched to buildnumber-maven-plugin, updated goals and manifest entries.
Comments suppressed due to low confidence (2)

client/pom.xml:681

  • After switching to buildnumber-maven-plugin and using its create goal, verify that ${buildNumber} and ${scmBranch} are actually populated. The plugin may require explicit <propertyName> or <branchName> configuration to match these manifest entries.
<goal>create</goal>

tools/marvin/README.md:1

  • [nitpick] Consider expanding this README with basic installation or quick-start instructions (e.g., dependencies, setup commands) to help new users onboard more quickly.
# Marvin

Copy link

codecov bot commented May 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.52%. Comparing base (f496ed6) to head (9952d12).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #10909   +/-   ##
=========================================
  Coverage     16.52%   16.52%           
  Complexity    13801    13801           
=========================================
  Files          5717     5717           
  Lines        506345   506356   +11     
  Branches      61446    61447    +1     
=========================================
+ Hits          83693    83696    +3     
- Misses       413273   413282    +9     
+ Partials       9379     9378    -1     
Flag Coverage Δ
uitests 3.97% <ø> (ø)
unittests 17.40% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13486

@vishesh92
Copy link
Member Author

@blueorangutan test

@blueorangutan
Copy link

@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@vishesh92 vishesh92 added this to the 4.21.0 milestone May 23, 2025
@blueorangutan
Copy link

[SF] Trillian test result (tid-13376)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 61684 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10909-t13376-kvm-ol8.zip
Smoke tests completed. 140 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_create_pvlan_network Error 0.17 test_pvlan.py

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.

3 participants