Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Move to Egeria 4.1 #46

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

Conversation

mandy-chessell
Copy link
Contributor

No description provided.

Signed-off-by: Mandy Chessell <[email protected]>
Signed-off-by: Mandy Chessell <[email protected]>
@mandy-chessell mandy-chessell enabled auto-merge June 5, 2023 16:06
Copy link
Member

@planetf1 planetf1 left a comment

Choose a reason for hiding this comment

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

The codeQL tests are currently using 'autobuild' which should build using either maven or gradle as appropriate, though we have had issues in the past both with autobuild, and codeQL more generally.

In this case the checks didn't fail as such, but we saw no results.

This project also currently doesn't have a verification in build -- perhaps in part as it's a series of small projects. I do think it would be worthwhile adding such a build, please let me know if you need some tips, but it's similar to our other gradle based projects.

Given codeQL I will set the codeQL we could set the checks to be optional for now. These can be reenabled in settings if the checks need to be mandatory in future. But first, reopening and closing the PR may kick codeQL into action, so I will try that.

@planetf1 planetf1 closed this Jun 7, 2023
auto-merge was automatically disabled June 7, 2023 08:29

Pull request was closed

@planetf1 planetf1 reopened this Jun 7, 2023
@mandy-chessell
Copy link
Contributor Author

I do not know why codeQL was enabled - I agree it should not be required - particularly as it is not working :)

@mandy-chessell mandy-chessell enabled auto-merge June 7, 2023 08:30
@planetf1
Copy link
Member

planetf1 commented Jun 7, 2023

After close/open, the codeQL action was kicked off. However it failed.

  [2023-06-07 08:31:23] [autobuild] Execution failed for task ':asset-deploy:compileJava'.
  [2023-06-07 08:31:23] [autobuild] > error: release version 17 not supported

I tried building the PR locally.

One warning

> Task :buildHealth
There were dependency violations. See report at /Users/jonesn/IdeaProjects/egeria-dev-projects/build/reports/dependency-analysis/build-health-report.txt
cat /Users/jonesn/IdeaProjects/egeria-dev-projects/build/reports/dependency-analysis/build-health-report.txt
Advice for :asset-deploy
Unused dependencies which should be removed:
  implementation 'org.odpi.egeria:ocf-metadata-client:4.1'

Advice for :asset-look-up
Unused dependencies which should be removed:
  implementation 'org.odpi.egeria:ocf-metadata-api:4.1'
  implementation 'org.odpi.egeria:ocf-metadata-client:4.1'

Advice for :asset-set-up
Unused dependencies which should be removed:
  implementation 'org.odpi.egeria:asset-consumer-api:4.1'
  implementation 'org.odpi.egeria:asset-manager-api:4.1'
  implementation 'org.odpi.egeria:asset-owner-api:4.1'
  implementation 'org.odpi.egeria:data-manager-api:4.1'
  implementation 'org.odpi.egeria:digital-architecture-api:4.1'
  implementation 'org.odpi.egeria:it-infrastructure-api:4.1'
  implementation 'org.odpi.egeria:ocf-metadata-api:4.1'
  implementation 'org.odpi.egeria:ocf-metadata-client:4.1'
  implementation 'org.odpi.egeria:open-integration-framework:4.1'
  implementation 'org.odpi.egeria:platform-services-api:4.1'

Advice for :egeria-config-utility
Unused dependencies which should be removed:
  implementation 'org.odpi.egeria:audit-log-framework:4.1'

Advice for :egeria-ops-utility
Unused dependencies which should be removed:
  implementation 'org.odpi.egeria:open-connector-framework:4.1'

In core egeria the top level build.gradle sets us up to fail when a dependency violation occurs

This is done by ensuring this is set

 // Dependency checking - see https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin
 dependencyAnalysis {
     issues {
         all {
             onAny {
                 severity('fail')
             }
         }
     }
 }

I appprove the change, but suggest we do

  • Make the codeQL check optional for now (settings/branch protection rules/main -- remove the codeQL variations) - but at this point only DCO is checked
  • Make the healthcheck dependency validation mandatory, and correct the reported issues
  • Fix the codeQL build to do an explicit compile (validate wrapper, and use official gradle action)
  • Consider adding a regular build script which is similar, but does not run codeQL (there is some duplication, but you could then make the codeQL check optional, and core build mandatory)

Let me know if you need any advice/help with the above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants