microsoft / jmeter-performance-analyzer-devops-extension

This task enables to run Performance testng using Apache Jmeter, Analyze report and post results. This task uses Apache Jmeter 5.5 and expects a valid parametrized JMX File, Any input Files, and property file for JMX. The task runs the jmx files according to the configured values in JMX and publishes the result to build artifacts and $web of your storage container. Provides control to fail pipeline if JMeter test fails More details at https://marketplace.visualstudio.com/items?itemName=id-az-pipeline.jmeter-perf-analyzer. You need to enable static hosting in the storage container in order to be able to view html results.
Other
10 stars 5 forks source link

New version has broken my pipeline #31

Open Pantalones411 opened 1 year ago

Pantalones411 commented 1 year ago

We use a custom download of jmeter. Instead of .tgz, we have a .tar.gz file, this worked previously. However, now that the folder name is being built using this logic, last index of '.' on our URL is different than assumed: perfanalyzer/src/jmeter-utils.ts export function getJmeterFolderNameFromURL(JMETER_URL: string) { let start = JMETER_URL.lastIndexOf("/"); let end =JMETER_URL.lastIndexOf("."); return JMETER_URL.substring(start+1,end); }

We are receiving an error: 2022-11-28T21:19:09.5482386Z ##[error]Error: ENOENT: no such file or directory, chdir 'C:\agent_perf\r2\a\apache-jmeter-5.5_6953609198\apache-jmeter-5.5.tar\bin'

5-k commented 1 year ago

We will work on this. Based on the inputs and usage we have decided that under advanced we will have a folder name to which the jmeter would extract to. It will be kept to default to apache-jmeter-5.5 and can be updated if required. The extracted path would be expected to have jmeter hierarchy

5-k commented 1 year ago

Hi @Pantalones411 Version 1.7.48 has the fix for your issue. It has been deployed, please let us know if the issue is fixed

5-k commented 1 year ago

Can you confim @Pantalones411

Pantalones411 commented 1 year ago

The issue persists, but it looks like the folder path should be correct now, it no longer has ".tar" in the path. I will dig into debugging this today.

2022-11-30T23:14:11.0215699Z ##[error]ENOENT: no such file or directory, chdir 'C:\agent_perf\r2\a\apache-jmeter-5.5\apache-jmeter-5.5\bin'