" /> Status for Andrew DeFaria: March 2010 Archives

« February 2010 | Main | April 2010 »

March 31, 2010

Dang Eclipse

Dang IDEs! They're often more trouble than they are worth!! Be wary!

I'm in Eclipse and I was trying to clean up my view a little bit. I selected a few view private files I wanted to delete with Control-Click. Then I hit the delete key to delete them. Eclipse prompted me "Are you sure you want to delete these files?" and I responded yes. But then I noticed that one of the files that was selected was mktriggers.pl!!! I did not select mktriggers.pl explicitly - it was selected because that was the last file I was editing was mktriggers.pl. And, remember, I only expected this delete to be deleting the view private files I selected, not Clearcase elements. I did not expect any rmnames to be happening.

No worries you say? This is in Clearcase you say? Yes it was. But it was also checked out and with my most recent modifications. "Ah", I hear you saying, "Clearcase shouldn't be doing any explicit destructive activities without asking you first" - well it just did! It rmnamed mktriggers.pl without confirmation. Sure it asked whether or not I wanted to remove files, and I did, the ones I explicitly selected - not the one it had selected simply because I was editing a file. "Well shouldn't there be an option on rmname that you have to specify in order for rmname to proceed?" Yes there is - it's -force and good old Eclipse must have called rmname with -force!

"But surely there's a .keep file around or something that you can recover from". Well ah, no. Not in this case. My work has been lost!

You have been warned!

March 26, 2010

QC work/mktriggers progress/sync from Tandem issues

  • Detailed which fields are currently getting QC Synchronized
  • Updated vbs scripts to be more Unix like, accepting parameters, etc. and to be able to update the status both backwards and forwards, as well as have a -noexec mode.
  • Met with ??? regarding QC synchronization
  • Worked a lot with Randy on Evil Twin issues for Polaris
  • Documented duplicate code problems
  • Documented how to use dynamic views in Eclipse
  • Working on trying to compare files from the pathway for SDDLS
  • Worked on getting mktriggers.pl finished.

Issues with getsysid.pl

There is a script called getsysid.pl which will get stuff from the Tandem and ftp it locally. The hope was that we could just get stuff back from the Tandem and then use something like diff -r to compare things. There are some issue with that:

  1. Since files are coming off the Tandem their extensions are lost. Therefore while it may be foo.c when in Clearcase, it's just foo when it gets to the Tandem and thus when it comes back from the Tandem it's also just foo. diff -r will not be matching up foo and foo.c
  2. Typically views on Windows in transparent mode retain their CRLF characteristics. In other words they are in "DOS" mode. Files come back from the Tandem however are in "Unix" mode. This makes every line report as different from diff!
  3. There's the issue of these "squiggle" lines where version information is encoded in Clearcase and filled in on the Tandem (or visa versa). This lines, of course, will compare differently. Ugh!

Perhaps a tool that can take these differences into account...

March 24, 2010

SDDLS progress/m_pPerl != 0 fix/Merging directories

  • Updated documentation on UCM Batch Delivery to describe how to use user selectors on BF
  • Release Power Point presentation about SDDLS component
  • Found out that the m_pPerl != 0 bug is fixed by install package on SCM Tools page
  • Went through exercise with Randy of merging directories to allow backporting of code to an earlier release. General procedure is to use the Version Tree to select the appropriate parent directory, right click, merge to... and select the current view's version. Merge everything from the current view except the files that are to be backported. THis gets you an empty copy of the right OID. Then the user needs to do the same procedure with the individual files to get the content.
  • Made some progress with mktriggers.pl

March 16, 2010

SDDLS sync to guardian/QC updates

  • After a 5 hour run, finally managed to get the sync to guardian of SDDLS to work. Looks like it worked correctly. Need to work on documenting. Also need to get Randy to check things out and deliver a simple change
  • Spoke with Jason more. It seems the .vbs script are indeed updating a QC database - one with "clearquest" in the name but a QC database nonetheless
  • Described how to use dynamic views in Eclipse

Eclipse plugin support for Clearcase

There are 3 plugins that I see in my Eclipse environment. You can see them by selecting Help: Software Updates: Manage Configuration. Expand the C:\Program Files\Eclipse (or wherever you put Eclipse). You'll see the following Clearcase related plugins:

  • Rational Clearcase MVFS Support 7.0.0.200801131A: I think this is what supports dynamic views
  • Rational Clearcase Remote Client for Eclipse 7.0.1.D061004: I think this is what supports web views or CCRC
  • Rational Clearcase SCM Adapter 7.0.0.20061206A: I think this is just an adapter that translates Clearcase CM commands to Eclipse - which can use Clearcase or CVS or SVN, etc.

Accessing an existing dynamic view in Eclipse

When you are in Eclipse with the above plugins many operations seem to be CCRC focused. For example, attempting to join a UCM project will lead you down a path to creating a CCRC or webview. Also, things like Clearcase: Create Clearcase View start with 1) a dialog box that says Create Base Clearcase View and asks to Select a Clearcase Web Server for the view. But you can create dynamic views outside the context of Eclipse and then use them in Eclipse.

Assuming you made a view by joining a project say from the Project Explorer, select File: New Project, expand General and then select Project and Next.

New Project Dialog box

Give your project a name, toggle off Use Default Location and browse to your view mounted under the M drive and into a vob (must be done in some vob):

New Project Dialog 2

Click Finish. If you get the following dialog box then click Cancel.

Add Element

This may be required. In Eclipse select Window: Preferences and then filter by "mvfs". If necessary click on Workspace and Apply then do Windows: Preferences again and click on Enable ClearCase dynamic view file system support.

MVFS Preferences

You should see Eclipse Refreshing Workspace running in the background. I'm not 100% what that's doing (getting Clearcase attributes to cache them?)

You should be able to right click on your newly created project (GDN_6.6.3 in the example above) and select Team then things like Show Version Tree or Compare with Previous Version etc.

March 5, 2010

Clearquest problems

  • Had a problem with Clearquest, something about m_pPerl != 0. Got it when trying to create a UCM project. Traced that down to not being able to create the UCM Project in Clearquest. Then I couldn't even complete a Clearquest activity! I was able to do so over on Omair's machine so we suspected my install was somehow corrupted. Ended up uninstalling and reinstalling Clearquest
  • Created new UCM Project for Nancy

March 3, 2010

Undo checkout

  • Met with Jodi, Lyle, etc. Decided to go with the proposed solution of making BF jobs to do the deliveries as Lyle or designate. Sent him instructions on how to set up the BF part. Unco should be simple.
  • Worked with Sherri to get her going with starting a view. They seem to have been told to go through Eclipse to start the view and mount the vob. Odd.

March 2, 2010

UCM Project Creation

  • Created 3 UCM Projects/streams - one including an Import Project component
  • Investigated what causes users to be considered Clearcase Admins

A question was asked about what causes users to be considered Clearcase admins:

From About ClearCase permissions on Windows:

ClearCase Administrative Access

Privileged users in ClearCase have rights to create, modify, and delete any ClearCase object. Access to these permissions should be restricted to ClearCase Administrators and the ClearCase Process Account (Atria Location Broker Service - ALBD). Access is controlled by membership in the ClearCase Administrators group.

This group which is designated during the setup and installation of ClearCase is referred to as the ClearCase privileged group. By default, this group is called clearcase. Some defining characteristics of the ClearCase (or privileged) group are:
  • The account under which whose identity Atria Location Broker Daemon (ALBD) runs has to be a member of this group, such as clearcase_albd.
  • This group has Full Control of the view and VOB storage directories.
  • Members of this group are considered ClearCase Administrators.

Note: The ClearCase privileged group must never be used as the primary group on a VOB or set as a primary group for ClearCase access.
And from ClearCase administration: The first ten things:
The ClearCase administrator is the most powerful user having full control of a site installation. On Unix, this would be the superuser, UID=0, on the VOB server. On Windows, it is any user who is a member of the clearcase domain group.
proving, once again, that root is everything on Unix!

So now you know...

March 1, 2010

Busy day

Need to keep status if even to remind myself what I'm doing.

  • Fixed case #9225676 for Kemyss about evil twins - turns out there was no twin
  • Closed case #9214530 regarding evil twins for Curtis
  • Attended meeting about MQC
  • Submitted ticket to get a MQC account
  • Weekly high level status meeting with Dave and Rob. Focusing on SDDLS & Uncheckout problem
  • Solved another evil twin case with Marlene
  • Submitted helpdesk ticket to get Anthony added to the proper NIS group. They can have a Unix account but not be given access to Unix itself. So, ypmatch <username> passwd will show them but id will not. This is because they are not in the users_seattle_clearcase_users NIS netgroup so thus they are not considered a user on this Unix system. Still have yet to figure out how they do Samba here...