Is there a way to clear NX Cloud cache? - nrwl-nx

I know I can clear nx cache with nx reset but is there a way to clear the NX Cloud cache?
I could not find a command or an option in their GUI that would enable this.

Related

Can Nx create more finely-grained tasks than one per package?

We're in the process of adopting Nx Cloud to speed up CI in our monorepo. It seems that when we run nx affected for a given target, it will create at most one task per 'affected' package. That is, we won't get tasks to build/test/lint/e2e just part of a package.
For some apps, E2E tests run very long. We'd like to use Nx DTE to efficiently load balance the tests across many Nx Cloud agents, even when only one app is 'affected'.
Is there an example anywhere showing how to do this?

Multithread Pytest

I wanted to create a test in PyTest where it will parallelly open two Chrome and Firefox browser and test two test cases one by one with valid and invalid sets of inputs. How should I achieve it?
Thanks for your advanced help.
You can achieve this using following methods
Selenium Grid and docker.
Download docker and pull the image for Selenium Hub and Image for Chrome and Image for Firefox. Start the containers and you are good to go.
You can follow the instruction from this page.
https://github.com/SeleniumHQ/docker-selenium
If you do not want to use docker then, you can download selenium grid jar file for hub and nodes in your local machine and manually trigger them using the command prompt. following link can be useful they have explained it very nicely
https://www.guru99.com/introduction-to-selenium-grid.html
https://www.selenium.dev/documentation/en/grid/grid_4/setting_up_your_own_grid/

Modify Workflow of Incident Management accelerator in K2 Studio

I am totally new to K2 and its very basic. I have installed the Incident Management accelerator. I am struggling hard to locate the workflow called “Incident Resolution” under the rules "when create button is clicked". I would like to modify this workflow to fit my purpose. Can anybody help to locate the workflow in K2 Studio? Any help on this is greatly appreciated.
Regards
George
First let me tell that it is not obvious, so new or not to K2, your question is legit :) It is very easy to do... once you know :)
If you already installed the accelerator, I suppose you already unzipped the package and used the K2 Package and Deploy to install it on your server.
Your first stop will be the K2 Workspace. For this, you must use Internet Explorer. The URL will usually be http://yourserver:81/Workspace
On your system, the port may differ dependending on your installation.
In the workspace, go to Management/Management console.
Expand your server then go to Workflow Server/Processes/Operations/Incident Resolution/Versions
By default, you should see a single version. Notice the download link next to the version. It allows you to download the process.
Download the process and save it somewhere. You will get a self-exctratible zip (.exe). Run that .exe and choose where the process should be extracted. It can be anywhere.
Browse to this location on your file system.
Double click the .k2proj project file. This will open the project containing the process using K2 Studio.
From here, you can now modify the process and deploy a new version on the server.
Please note, that at any time, if your new process ends up being 'not that good', you can go back to the versions screen in order to set another version of the process as the default one (the one that will be opened by the SmartForms). That gives you them time to fix your process and deploy a new version of the process that works better.
Let me know how it goes.

How can I get a IPython NotebookApp to be started and still manage it from outside of a browser?

It is possible to start a notebook app within an ipython console by
from IPython.html import notebookapp
nbapp = notebookapp.NotebookApp()
nbapp.initialize()
nbapp.start()
This will simply open a browser with a dashboard from which is possible to create/delete and start/shutdown notebooks. However nbapp.start() hooks up to tornado http server and it is not possible to use the instance nbapp to manage the notebooks from the console.
Some level of management can be done before executing the method nbapp.start(), but I couldn't find a way to start a proper notebook(linked to a new ipython kernel) page which can be read and edited from a web browser.
By taking a look at the start method in NotebookApp class, it seems that all the magic is done by the following method call
ioloop.IOLoop.instance().start()
This is the link for what I am refering to.
https://github.com/ipython/ipython/blob/master/IPython/html/notebookapp.py#L824
ioloop is imported at the beginning of the file and I didn't quite understand what this actually do.
# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop
ioloop.install()
I was wondering if there was a way to start the server just the way it is working now, and send requests to it, as it works on a click of a mouse on the dashboard.
Or even better, have full access to the nbapp instance to create and start notebooks in the server.
Hope someone can help me with that, I would love to better understand how the ipython notebook work at the back stage.
Cheers

Eclipse CDT+RSE+PTP: how to set up a synchronized remote project with remote indexing?

This C project I am supposed to work on is taking too long(>5 hours) to do indexing on local, also the building depends on the environment setting on a remote server.
So I am thinking to have the server doing the indexing and at the same time keep a local copy of the project just for the fast editing and browsing. After some search on google, I found that Eclipse PTP5.0 's synchronized remote project is very close to what I want.
But the docs doesn't seem very clear how to set it up. I have tried many times, no success.
I see many places with Remote Tools and RSE as options, which one do I choose? How are they different? Do I have to run rdt-server manually (I don't have the root access on the server)? Is it possible to do this only with ssh without opening another port on the server?
Is there a guide for this kind of setup?
Or, any other ways to achieve this?
Thanks !
EDIT:
on a second thought, synchronise doesn't seem very important to me since PTP is doing it through git anyway. So remote indexing is what I need the most.
Remote Indexing won't speed up indexing. The indexer isn't parallel (yet), so using a larger server won't help.
For help on how to setup a synchronized project see:
http://wiki.eclipse.org/PTP/sync-projects
Feel free to ask questions at ptp-user#eclipse.org.