Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 07 2021 08:54

    dependabot[bot] on maven

    (compare)

  • Dec 07 2021 08:53

    lper1582 on master

    Bump guava from 28.2-jre to 29.… (compare)

  • Dec 07 2021 08:53
    lper1582 closed #68
  • Mar 31 2021 22:21
    dependabot[bot] labeled #68
  • Mar 31 2021 22:21
    dependabot[bot] opened #68
  • Mar 31 2021 22:21

    dependabot[bot] on maven

    Bump guava from 28.2-jre to 29.… (compare)

  • Oct 12 2020 17:03
    markyjackson-taulia commented #35
  • Aug 29 2020 13:49

    Loghijiaha on master

    code cleanup Added HTML view (compare)

  • Aug 29 2020 13:49
    Loghijiaha closed #67
  • Aug 28 2020 18:21
    Loghijiaha commented #67
  • Aug 28 2020 18:20
    Loghijiaha synchronize #67
  • Aug 28 2020 17:48
    Loghijiaha opened #67
  • Aug 28 2020 07:48

    Loghijiaha on master

    Fixed unnecessary SEVERE log (compare)

  • Aug 28 2020 07:48
    Loghijiaha closed #66
  • Aug 27 2020 17:45
    Loghijiaha opened #66
  • Aug 24 2020 20:32

    Loghijiaha on master

    Updated release draft Updated changelog (compare)

  • Aug 24 2020 20:32
    Loghijiaha closed #65
  • Aug 24 2020 20:22
    Loghijiaha commented #65
  • Aug 24 2020 15:44
    Loghijiaha synchronize #65
  • Aug 24 2020 15:43
    Loghijiaha opened #65
Loghi Perinpanayagam
@lper1582
@junholv It seems that you have tried to build the plugin from the source code. Try the above installation steps that would help you.
Loghi Perinpanayagam
@lper1582
@kinow @kinow @imoutsatsos PR for blog post jenkins-infra/jenkins.io#3562 :ticket:
Bruno P. Kinoshita
@kinow
@shivaylamba ^
(oh, d'oh, I see you've already seen that PR and even reviewed it)
Ioannis K. Moutsatsos
@imoutsatsos
image.png
image.png

@Loghijiaha @kinow I have been trying to configure a Python server using the 0.1-alpha-2-SNAPSHOT release. Unfortunately I have not been able to get past configuring a Python server. on my Win10 workstation The error is similar to what I have been getting in the past.

I have setup a simple job to confirm that Jenkins is running in the right environment . The job runs 'pip freeze' in a Windows console and the output of the console looks as expected. Any advice?

Junholv OBO
@junholv
@Loghijiaha Thank you very much for the tuto to install the plugin !!! I try to lauch a jupyter notebook with my personnal laptop. Just one question : How ? Because add the path of my juyter notebook doesn't work. And if i use the ipython Builder option and i tape for example ("jupyter nbconvert --execute path_fof/foder_1/folder_2/notebok.ipynb is doesn't works .. Some one know how to teste this notebook. And in this notebook i generate html file due to plotly save and txt document. I want it to higlight after the running on file, with perhaps some csv file too.
9 replies
Junholv OBO
@junholv
Capture d’écran 2020-07-26 à 00.26.00.png
Loghi Perinpanayagam
@lper1582
@imoutsatsos Are you using the alpha 2 release or the other branches? Because we skipped the PR for version selector. Maybe uninstall and re install the plugin will helpful.
Ioannis K. Moutsatsos
@imoutsatsos
Hi @Loghijiaha . Good observation! I caught that too, and tried both. Building directly from git master branch source I still get same error, same behavior.
Loghi Perinpanayagam
@lper1582
Strange. I tested on windows 10. that works for me. @shivaylamba I think you have a windows 10 right? If you have a little time to set up our plugin, let me know or we can test it in the meeting hours.
2 replies
Junholv OBO
@junholv
Capture d’écran 2020-07-27 à 00.54.57.png
Capture d’écran 2020-07-27 à 00.56.32.png
Capture d’écran 2020-07-27 à 00.55.08.png
Capture d’écran 2020-07-27 à 00.55.26.png
Capture d’écran 2020-07-27 à 00.55.33.png
Capture d’écran 2020-07-27 à 00.55.16.png
Junholv OBO
@junholv
Capture d’écran 2020-07-27 à 01.04.50.png
Capture d’écran 2020-07-27 à 01.06.29.png
Capture d’écran 2020-07-27 à 01.06.39.png
Capture d’écran 2020-07-27 à 01.04.35.png
Loghi Perinpanayagam
@lper1582
@kinow I have just raised the PR to give an insight into what I m going to do in the next week programmatically explained there. I have not finalized them. I will finalize all the changes after we discussed. there are issues some issues with saving htmls in jenkins workspace. will disscuss it.
Bruno P. Kinoshita
@kinow
Roger that @Loghijiaha
Loghi Perinpanayagam
@lper1582
Loghi Perinpanayagam
@lper1582
voting for demo timslot : https://doodle.com/poll/bwqax28iaq6xd7ez
Loghi Perinpanayagam
@lper1582
After using this System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", ""); the javascript/html is running on the plugin.
Oleg Nenashev
@oleg-nenashev
@Loghijiaha I made a few non-blocking comments in jenkins-infra/jenkins.io#3562 . Would you like to address them? Or should I just ship the blog?
Loghi Perinpanayagam
@lper1582
I have made the changes @oleg-nenashev . You can proceed with the PR
Oleg Nenashev
@oleg-nenashev
:+1:
Loghi Perinpanayagam
@lper1582
@kinow there is way after Jenkins 2.200+ an explicitly relaxing the CSP using a root resource URL. But it is too complex to understand to me. Most of the Jupyter's HTML outputs need to run js, I found System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-scripts;"); this was a simple way relax CSP, but unsafe. Users should know about this problem when they generate complex js/Html output. What would be our next step on this issue?
Bruno P. Kinoshita
@kinow

Hi @Loghijiaha , that System.setProperty is useful in confirming that enabling that fixes the issue. But changing a configuration like that in a build step is definitely bad.

But it is too complex to understand to me.

Unfortunately I think we have to dig deeper on this option even though it is complex. We have a few options here:

  1. do a deeper investigation into CSP with Jenkins, and either find a way to enable that in jobs with the plugin or let the user choose what to do
  2. document that users will have to enable CSP in their Jenkins installation for testing
  3. check if there are other alternatives, such as the HTML Publisher Plug-in, and if so, document too

I think it'd be best to go with 2. or 3.. If necessary, leave an issue for later. This is not a must-have feature from the plug-in, and we know now that if users enable that env-var or setting in Jenkins, HTML+JS will be correctly rendered.

What do you think @Loghijiaha ?

Loghi Perinpanayagam
@lper1582
@kinow I agree with the option with 2 and we can document to enable CSP themselves.
Oleg Nenashev
@oleg-nenashev

And a LinkedIn message draft: `Machine Learning Plugin project - Coding Phase 2 project update by Loghi Perinpanayagam: agent Docker image for Jupyter Notebooks, migration to Python 3, user documentation, testing in environment and bugfixes.

https://www.jenkins.io/blog/2020/07/27/machine-learning-plugin-coding-phase2/`

Loghi Perinpanayagam
@lper1582
Hi @oleg. The open graph is fantastic. I'd 100 for that. The linkedIn draft is looking good for me. How can I add those three images in the blog post in a aligned line ? Should I merge three of them or ?
Oleg Nenashev
@oleg-nenashev
machine-learning.png
Loghi Perinpanayagam
@lper1582
okay thanks, @oleg I will give PR on that
Oleg Nenashev
@oleg-nenashev
Yeah. Just follow the example in other blogs. I will launch the LinkedIn post, it does not need opengraph metadata
Loghi Perinpanayagam
@lper1582
Ioannis K. Moutsatsos
@imoutsatsos
Nice presentation today @Loghijiaha ! It was great to also realize that our DevOps colleagues are also interested in ML analysis of Jenkins artifacts and builds. Hadn't thought about that @oleg-nenashev @markearlwaite. Thanks!
Shivay Lamba
@shivaylamba
Yes great presentation Loghi
Loghi Perinpanayagam
@lper1582
Thank you @imoutsatsos @shivaylamba .Will finish this and release a stable/RC release soon. :cheers:
Bruno P. Kinoshita
@kinow
@Loghijiaha for testing in a distributed environment, I think first you can try writing a simple pipeline job https://www.jenkins.io/doc/book/pipeline/docker/#execution-environment
But instead of the node command, try running some Python. You'll also need to check if the machine-learning-plugin is compatible with pipelines, or if we need to add the dependency + a few changes in the Java API.
If that works, then you should be able to create a test using the Jenkins testing API (that you are already using in other tests): https://www.jenkins.io/doc/developer/testing/#within-a-pipeline
Bruno P. Kinoshita
@kinow
Here's an example from a plugin that contains a test for the head node, and another for running in an agent: https://github.com/jenkinsci/cmakebuilder-plugin/blob/273b72bcd732718bd17de4c98932ebf806fc5ea4/src/test/java/hudson/plugins/cmake/CmakeBuilderBuildStepTest.java
Loghi Perinpanayagam
@lper1582
@kinow @imoutsatsos @shivaylamba I found an API Zeppelin-jupyter where we could specify the kernel then it will run the code where you chooses. I have tested with python and R. It works :full_moon: