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

[bug]: --disableAnsi doesn't clean up logs in Jenkins completely #1941

Closed
1 task done
Sonichigo opened this issue Jun 7, 2024 · 1 comment · Fixed by #1998
Closed
1 task done

[bug]: --disableAnsi doesn't clean up logs in Jenkins completely #1941

Sonichigo opened this issue Jun 7, 2024 · 1 comment · Fixed by #1998
Labels
bug Something isn't working dev-fellowship Valid Issues that will be considered for Fellowship Performance evaluation keploy level-2 Minor bugs or issues (4 points)

Comments

@Sonichigo
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I am running keploy tests in my Jenkins Pipeline with the --disableAnsi flag still the test summaries are not in correct format.

  TESTRUN SUMMARY. For test-set: �[31m�[1m"�[0m�[31mtest-set-0�[0m�[31m�[1m"�[0m
	Total tests: �[34m�[1m2�[0m
	Total test passed: �[34m�[1m0�[0m
	Total test failed: �[34m�[1m2�[0m
 <=========================================> 


 <=========================================> 
  COMPLETE TESTRUN SUMMARY. 
	Total tests: �[34m�[1m2�[0m
	Total test passed: �[34m�[1m0�[0m
	Total test failed: �[34m�[1m2�[0m

	Test Suite Name		Total Test	Passed		Failed	

	�[31m�[1m"�[0m�[31mtest-set-0�[0m�[31m�[1m"�[0m		�[34m�[1m2�[0m		�[34m�[1m0�[0m		�[34m�[1m2�[0m

Steps to reproduce

Create a Jenkins Pipeline, with a application having keploy testsuites or use the below pipeline syntax:

pipeline {
    agent any 
    stages {
        stage('Test') { 
            steps {
                git branch: 'main', url: 'https://github.com/Sonichigo/new_samples_js.git'

                // Download and prepare Keploy binary
                sh "curl --silent --location 'https://github.com/keploy/keploy/releases/latest/download/keploy_linux_arm64.tar.gz' | tar xz --overwrite -C /tmp"
                sh "mkdir -p /usr/local/bin && sudo mv /tmp/keploy /usr/local/bin/keploy"
                
                sh"""
                npm install
                sudo -E keploy test -c "npm run start" --disableANSI
                """
            }
        }
    }
}

In the log's, the keploy test summary can be noted to have the ansi formatting issue.

Environment

Release

Version

Local

Repository

keploy

@Sonichigo Sonichigo added the bug Something isn't working label Jun 7, 2024
@Swpn0neel Swpn0neel added dev-fellowship Valid Issues that will be considered for Fellowship Performance evaluation level-2 Minor bugs or issues (4 points) labels Jun 20, 2024
@besasch88
Copy link
Contributor

@Sonichigo Tried to fix it, please take a look when you have time, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev-fellowship Valid Issues that will be considered for Fellowship Performance evaluation keploy level-2 Minor bugs or issues (4 points)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants