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

The forgeops/docker/gatling authentication simulation fails - 'com.github.lkishalmi.gatling' not found #670

Open
tavelm opened this issue Feb 8, 2023 · 2 comments

Comments

@tavelm
Copy link

tavelm commented Feb 8, 2023

Unable to run the authentication rate simulation documented here: https://backstage.forgerock.com/docs/forgeops/7.1/deployment/benchmark/authrate.html#

I was able to create the test accounts and prime the directory servers using the documentation, but when I tried to run "gradle clean; gradle gatlingRun-am.AMRestAuthNSim" from the forgeops/docker/gatling directory, I get the following error:

ci@ci-forgerock:~/forgeops/docker/gatling$ gradle clean; gradle gatlingRun-am.AMRestAuthNSim

FAILURE: Build failed with an exception.

* Where:
Build file '/home/ci/forgeops/docker/gatling/build.gradle' line: 2

* What went wrong:
Plugin [id: 'com.github.lkishalmi.gatling', version: '3.3.4'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.github.lkishalmi.gatling:com.github.lkishalmi.gatling.gradle.plugin:3.3.4')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 348ms

Results of --stacktrace:

* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.github.lkishalmi.gatling', version: '3.3.4'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.github.lkishalmi.gatling:com.github.lkishalmi.gatling.gradle.plugin:3.3.4')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo

It looks like this plugin from the Github repo was deprecated in 2020.

I am using the "build.gradle' script from the forgeops repo:

plugins {
    id "com.github.lkishalmi.gatling" version "3.3.4"
}

apply plugin: 'scala'
apply plugin: 'java'
apply plugin: 'idea'

repositories {
    jcenter()
    mavenCentral()
}

dependencies {
    gatling 'com.google.cloud:google-cloud-storage:1.96.0'
    gatling 'org.zeroturnaround:zt-zip:1.13'
    gatling 'com.lihaoyi:ujson_2.12:1.1.0'
}

gatling {
    toolVersion = '3.1.2'
    // These are lifted from the source code of gatling.sh
    jvmArgs = [ '-server','-Xmx1G','-XX:+HeapDumpOnOutOfMemoryError','-XX:+UseG1GC',
                '-XX:MaxGCPauseMillis=30','-XX:G1HeapRegionSize=16m','-XX:InitiatingHeapOccupancyPercent=75',
                '-XX:+ParallelRefProcEnabled','-XX:+PerfDisableSharedMem','-XX:+OptimizeStringConcat',
                '-Djava.net.preferIPv4Stack=true','-Djava.net.preferIPv6Addresses=false']
    simulations = {
        "**/*.scala"
    }
    //logLevel = "DEBUG"
}

task uploadLogs(type: JavaExec, dependsOn: compileGatlingScala) {
    main = 'gsutil.LogUploader'
    classpath = sourceSets.gatling.runtimeClasspath
}

task downloadLogs(type: JavaExec, dependsOn: compileGatlingScala) {
    main = 'gsutil.LogDownloader'
    classpath = sourceSets.gatling.runtimeClasspath
}

task buildReport(type: JavaExec, dependsOn: downloadLogs) {
    main = 'io.gatling.app.Gatling'
    classpath = sourceSets.gatling.runtimeClasspath
    args = [
            "-ro", "build/reports/downloadedLogs",
            "-rf", ""
    ]
}

task uploadReport(type: JavaExec, dependsOn: buildReport) {
    main = 'gsutil.ReportUploader'
    classpath = sourceSets.gatling.runtimeClasspath
}

task uploadResults(type: JavaExec) {
    main = 'gsutil.ResultsUploader'
    classpath = sourceSets.gatling.runtimeClasspath
}

task deleteLogs(type: JavaExec, dependsOn: uploadReport) {
    main = 'gsutil.LogDeleter'
    classpath = sourceSets.gatling.runtimeClasspath
}
@tavelm tavelm changed the title The forgeops/docker/gatling authentication simulation test fails - 'com.github.lkishalmi.gatling' not found The forgeops/docker/gatling authentication simulation fails - 'com.github.lkishalmi.gatling' not found Feb 8, 2023
@tavelm
Copy link
Author

tavelm commented Feb 8, 2023

Running on Ubuntu 22.04.1 LTS 64-Bit

@dgoldssfo
Copy link
Contributor

I got a suggestion from one of our engineers to try upgrading to Gradle 3.8.0 and see if that works.

If it does, could you let us know? Thanks!

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

No branches or pull requests

2 participants