Cannot run a car locally on Code Rally beta (1.5?) - code-rally

I installed the latest beta version of Code Rally, following the instructions on IBM developers site. I believe this is a beta of version 1.5, but there is no indication on the page and downloads of previous stable versions are not available either. I installed Code Rally on
Linux - Fedora 25 (also in Ubuntu 15.04 and Windows 7 ultimate)
Eclipse Neon.2 Release (4.6.2)
I managed to create an intermediate and run it on a remote server. But I didn't succeed in running it on the Liberty server installed locally. I installed the Liberty server from the Servers tab on the lower left region of the Code Rally perspective. It is listening to port 9080 (default).
Then, I used the Server tab of the upper left to create a new server with Host: localhost and Port: 9080. When I Save this configuration the dialog box header says the Status: Online and Version: <1.3.1.2. If I press Login and enter an id I receive a message successful login message.
Nevertheless, if I press View leaderboard then Eclipse opens a web browser tab with a WebSphere error message saying that context root was not found, as can be seen in the following image.
If I press Enter spectator mode I also get an error message. It seems that the Code Rally server webapp was not loaded to Liberty but, unlike in previous Code Rally versions (at least according to this video).
If I try to run the car, using the Enter race on... command on the context menu of my car I get a message saying the server cannot be connected, as seen in the following screenshot.
Can anyone point me to what am I doing wrong? Do I need to install a Code Rally webapp in Liberty? Where do I get it?
This is a beta version but I would in fact prefer a stable version. Are the previous stable versions still available?

Disclaimer: I'm part of the Code Rally team at IBM.
To run on a local server you will need a 1.5 release of the Code Rally race simulation server - that has not been released yet as there were still a few outstanding bugs. To run a race where the AI and the race simulation are both on the same machine you need to run that webapp on the Liberty server once it is available (which should be soon).
The current beta is labelled as such as there's not a local race server download for this version - the code rally betas are stable on the client side before release, so the only beta part is the race simulation server. There were quite a few issues with the 1.4 release which have been fixed in 1.5 - unfortunately the move to 1.5 brought some breaking changes to the API where we can't have a mix of 1.4 and 1.5 servers/clients. As we ran an online contest racing on our cloud servers through December we had to update all the cloud servers to v1.5 so people could enter the contest with the new client.
For now I'd suggest running a race on one of the cloud servers - your vehicle code will run locally if you build an "agent" AI for seeing what is happening in your code.
edit
The 1.5 race simulation server is now available for download - the download link and install instructions are here: https://www.ibm.com/developerworks/community/blogs/code-rally/entry/beta_installer

Related

Attempting to install NuGet server on iis 10 on w2016 yields 404 not found error

My environment:
Windows 10 Creator (1703 with current updates to this date)
Visual Studio 2017, Enterprise, 15.3 with most of the goodies turned on.
Windows 2016, again with all current updates.
iis 10 with WebDeploy installed (that's a whole other installation nightmare, suffice it to say that SO helped there and the answers are already out there so I won't go into it here). Turned on ASP.NET 4.6, otherwise mainly accepted the defaults.
My process:
As per the NuGet.Server documentation, create a new ASP.NET MVC project using the "Empty" template and download and install NuGet.Server as specified. I'm using .NET 4.7 as my framework.
Compile and configure as desired (at least ensure you have an api key in place).
Deploy to iis using the "Publish" | Web Deploy option
Try to get in touch with the NuGet.Server on the website and fail miserably!
My bindings are 192.168.1.25 (yes, the server has a fixed IP address), port 80. The name of the site is AWENuGet and the desired url is www.awenuget.com.
To be sure, all of this works just fine if you take the same project as described above, assign a local port number (creating the project will do that anyway) and then simply running the application in Visual Studio works just fine.
But, when I took that self-same project and simply deployed it to iis, miserable failure.
I tried to open the host file (Windows\System 32\drivers\etc) and added the following:
192.168.1.25 www.awenuget.com
to said file and it still failed.
...and the answer, for me, was to take that same hosts file entry that I made on the server so that the server could see it and install it in my dev machine's hosts file and voila! NOW it works just fine.

Problems running Agent AI in CodeRally

When I try and deploy to my AI into a local liberty Eclipse informs me that I don't have servlet 3.0 installed.
My liberty installation is:-
Launching server1 (WebSphere Application Server 8.5.5.6/wlp-1.0.9.cl50620150610-
1749) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45-b15 (en_GB)
and it contains servlet 3.1
Even after installing the servlet 3.0 feature, it still says I need to install the feature
Here's some troubleshooting suggestions specific to your scenario.
If you're having issues with your own Liberty install, you can try using the one that ships with the Code Rally install (it's automatically included when you install using the Installation Manager install). You can find it under the Code Rally install dir, for example, on my Windows machine the Liberty install dir is:
C:\Program Files\IBM\CodeRally\wlp
As of July 2015, the Code Rally 1.4 install includes the Liberty 2015.5.0.0 beta, which does includes the servlet-3.0 feature by default.
I would also suggest creating a new workspace for Code Rally, rather than reusing an old workspace. This way you can ensure that there are not any old servers/runtimes defined (either Servers in the Servers view, or Runtimes defined under Preferences > Server > Runtime Environments). Code Rally should work with an existing workspace, but using a new workspace helps rule out these types of issues.
Ensure that you have the correct Liberty server defined in the Servers view, such that the 'WebSphere Application Server Liberty Profile at localhost' entry should be the only one listed. Note that you may also see Web Preview Server in the Servers view list; it can't hurt to remove this.
Finally, Code Rally Agents have a target Liberty server defined in their vehicle info. Right click on your vehicle in the Vehicles tab, and select Edit. Ensure that the "Liberty Server:" combo box is pointing to the correct server.
Thank you Jonathan for your help. The extra step I needed to do, was delete the contents of the c:\users\bondj\user.coderally directory - and then reinstall.

My MonoTouch App won't run on 6.1.3, runs on 6.0.x and before... WTF?

I just pushed my app to the App Store after building release/AppStore build using xamarin's Studio...
Everything was green lighted and ready to go, I only had one person who had not installed the release version.... They installed it and it takes 17 seconds to try to start and is killed (I presume). it does NOT create a crash log on the device.
In the Settings there is a "Debug Settings" section under the app - that I didn't put there, including an option for Xamarin Studio Host which is set to automatic but appears to be able to be set to some other string.. (Another message on what the heck this is, and how come it shows up in the first place, and how to get rid of it)
I'm at a loss how to debug this. I just downloaded and upgraded XCode to the latest, in hopes that will help.. (Although, I'm not using the XCode interface to build, but I expect that under the hood it is using that for parts of this, maybe the libraries or something.) Still, unless the iOS writers are nuts, it should be backward compatible with apps written for iOS 4.0 and later... (Mine is a 4.0 targeted app)
Also, on her phone (which has always been 6.x for all the testing she has done), my app has always taken a LONG time to start up.. but on 5.1 it is very fast.. (I.E. 1-2 seconds vs 10+ seconds on her phone)
Anyone got a clue, I sure could use one right now.. I expect that I'll have to reject the binary, and submit another one...
-Chert
Figured it out.... The issue was with the TestFlightApp SDK...
I removed it and now the app starts up OK... Resubmitted to App Store for approval.

Is it possible to run Magento TAF (Test Automation Framework) on Linux?

I'm trying to configure Magento TAF on Ubuntu, following the Installation Guide pdf.
I read on it...
Current version limitations:
Remote tests executing
UNIX running Usage
Firefox profile through configuration file
...but I feel skeptical :)
There is a main shell script prepared (runtests.sh)
if I configure everything and I execute selenium RC and runtests.sh, firefox browser opens... (but stands on empty page).
Furthermore: there are several inconsistences on the Installation Guide, that's why I suspect that Linux restrictions perhaps are deprecated. For example: on page 2 says...
At the base level, Magento Test Automation Framework will require the
following software: (...)Selenium RC 2.0.3
... but on page 4...
Download and install Selenium RC 1.0.3 (...).The latest available
version is 2.x, Download Selenium RC (Now available NEW 2.0b), but
automated test cases will probably not work with it.
The question: Is it possible to run Magento TAF on Linux?
Thanks!
Yes, it is possible.
I had the same problem using Selenium Grid in version 1.x.
Download Selenium Driver (Selenium 2). I got the tests running in Debian without modifying runtests.sh.
If you plan to test with several OS / browsers you can find a quick start tutorial for Selenium Grid 2. This may be helpful if you host your Magento code on a linux webserver. It's much easier now to set up the grid than it was with Selenium 1, fortunately.
Launch the server with
java -jar selenium-server-standalone-2.15.0.jar -role hub
By default, the server will run on port 4444. You can start the server on a Linux box without a desktop environment (e.g. a development web server).
Then you set up boxes with desktop environment (e.g. a Windows machine and a Linux machine). Now you download the server standalone library for every machine and start the client:
java -jar selenium-server-standalone-2.15.0.jar -role node -hub http://192.168.1.2:4444/grid/register
You have to change the IP to the IP of your Selenium server (and change the port if you did so in the first command). By default, the client will run on port 5555. If you want to use another port for the client or if you wish to start several client instances, you can define custom ports using the -port switch.
Note: don't care too much about the software versions mentioned in the document at all. It seems to be a bit outdated.
The latest public release works fine on Ubuntu/Debian pretty much out of the box, but the documentation is Windows-orientated.
We got the tests running on a headless Selenium installation using Google Chrome on Ubuntu server 11.04 64bit. Screen-shots are only possible when using Firefox, but Selenium requires version 3.6 of Firefox, so we'll need to downgrade the Mozilla browser to enable that.
[Update: March 27th 2012] We tried again with Firefox 10 after upgrading our packages and to our biggest surprise, it worked! We've now got screen-shots!
I wrote a tutorial (updated March 27th 2012) that outlines installing a fresh headless Selenium environment with Magento TAF on Ubuntu Server. Hope that helps.
Yes, this is possible.
I made a init script selenium-headless that simplifies running the TAF on a server.
The TAF project is under development, this is just a preview was published. The team wanted to share ideas and give valuable benefits (automatic tests) for everyone, who is developing for Magento. TAF will have changes, it will be restructured and polished before the official release.
The docs are outdated a little, they give general overview of the tests usage. Currently TAF can be run on both Windows and Linux, and both Selenium 1 and 2 can be used to run them.
Summary
Yes, TAF can be run on Linux.
Do not mind documentation inconsistences
If tests do not run - re-check your configuration and Selenium installation.
P.S. And sorry for issues - this version is just a working draft. It will be improved, documentation will be proof-read and informative messages will be provided.
Thanks for using TAF, anyway :)

CCTray v1.6 Continuously Disconnects and Reconnects to v1.4.4 Server When Polling

Background: I am investigating CCNet backwards compatibility with versions 1.4.4.75 and 1.6.7981.1: an older server with a newer version of CCTray, and a newer server with an older version of CCTray.
I have installed CCNet 1.4.4.75 and am running it locally on my machine. I placed one project on this local server, and can view it on CCTray 1.4.4.75 as I expected.
I then installed CCTray 1.6.7981.1 and tried having it list this project by adding the server (ticking "Connect to pre-1.5.0 server" when doing so). The project is listed, and is successfully added to the main CCTray screen, but it seems every time CCTray polls the server, it disconnects and reconnects to it, resulting in a very visible grey CCTray icon for the few seconds during the reconnection process.
I don't have this problem with the 1.4.4.75 version of CCTray, so I was wondering what could be causing this behaviour in the 1.6 version? Short of upgrading my CCNet server to 1.6, how do I solve this issue?
Any help is much appreciated.
~Sam.
The problem is in CruiseControl.NET-1.6.7981.1: $\project\Remote\QueueSetSnapshot.cs(59) and
$\project\Remote\QueueSnapshot.cs(71).
[OnDeserialized] DataReceived(StreamingContext context) is commented out, therefore no information about server queues is available if server is pre-1.5.0.
Null pointer exception occurs later in:
CruiseServerSnapshot.IsQueueSetSnapshotChanged() $\project\Remote\CruiseServerSnapshot.cs, line 73
I have downloaded the source code, uncommented DataReceived(...) methods, compiled and CCTray seems to be working fine.
I've just had the same problem but have managed to resolve it without changing the source code. When adding a build server I selected 'Via the CruiseControl.NET dashboard' instead of 'Connect directly using .NET remoting' and the reconnecting issue has gone.

Resources