Skip to content

Add installation testing system and dependency checks#11

Merged
laplaque merged 5 commits intomasterfrom
feature/installation-testing-and-dependency-checks
Jun 2, 2025
Merged

Add installation testing system and dependency checks#11
laplaque merged 5 commits intomasterfrom
feature/installation-testing-and-dependency-checks

Conversation

@laplaque
Copy link
Copy Markdown
Owner

@laplaque laplaque commented Jun 2, 2025

Add installation testing system and dependency checks

Description

  • Added installation testing system to verify plugin installations
  • Created dependency checking to avoid reinstalling packages
  • Updated all installation scripts with dependency verification
  • Installation scripts now skip package installation when dependencies are satisfied
  • Added comprehensive testing documentation
  • Added demonstration script for installation testing
  • Changed default installation directory to /opt/instana_plugins/
  • Removed dependency on Instana agent directories
  • Improved service naming convention to instana-microstrategy-{process}-monitor
  • Removed unnecessary plugin.json files
  • Simplified plugin detection in installation test
  • Modified test framework to support both old and new directory structures

Checklist before requesting a review

  • [/] I have performed a self-review of my code
  • [/] If this is a merge to master, I will create a version tag (v*..)
  • [/] The version tag will be higher than the previous version

Tag Information

Planned tag: v0.0.13

laplaque added 5 commits June 2, 2025 15:53
- Created check_dependencies.py to verify Python dependencies before installation
- Updated all installation scripts to check dependencies before installing
- Added test_installation.py to verify plugin installations work correctly
- Created comprehensive testing documentation in tests/README.md
- Added demo_installation_test.sh as a guided walkthrough of installation testing
- Installation scripts now skip package installation when dependencies are satisfied
This commit updates the plugin installation process to support a shared common directory:

- Modified all plugin installation scripts to:
  - Accept a base directory parameter where all plugins will be installed
  - Automatically create plugin subdirectories using lowercase plugin names
  - Install the common directory only once in the base directory
  - Set PYTHONPATH to the base directory in systemd services

- Updated test_installation.py to:
  - Support both old and new installation structures
  - Detect plugin installations in both structures
  - Set PYTHONPATH correctly based on the detected structure

- Added demo_installation_test.sh to demonstrate the new installation approach

This improves the installation process by ensuring common files exist only once for all plugins.
- Changed default installation directory to /opt/instana_plugins/
- Removed dependency on Instana agent directories
- Improved service naming convention to instana-microstrategy-{process}-monitor
- Removed unnecessary plugin.json files
- Updated test framework to support new directory structure
- Updated documentation to reflect all changes
@laplaque laplaque merged commit a5c15ed into master Jun 2, 2025
@laplaque laplaque deleted the feature/installation-testing-and-dependency-checks branch June 2, 2025 17:42
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.

1 participant