Running an Older VAST?
Instantiations has a really detailed migration guide online - looks like it has all the information about upgrading that you could possibly need.
Technorati Tags: va smalltalk, instantiations
. .
The author of this blog, James Robertson, passed away in April 2014. This blog is being maintained by David Buck (david@simberon.com).
Instantiations has a really detailed migration guide online - looks like it has all the information about upgrading that you could possibly need.
Technorati Tags: va smalltalk, instantiations
Looks like Thomas Koschate is going to be exploring the topic of packaging VA Smalltalk apps. I've done a lot of work on the equivalent process in VW; I'll be interested to see what he has to say for comparison purposes.
Technorati Tags: va smalltalk, deployment
WebQA interviews Nicholas Petton about the various Smalltalk projects he's been involved with - including JTalk, his latest.
Technorati Tags: jtalk, javascript
Mariano has started blogging - with the large number of projects he's contributing to, I'm sure that he'll have a lot to say.
I'll have to look into using this: a Smalltalk syntax highlighter in Javascript, suitable for making nicer code posts.
Technorati Tags: javascript
I've been working on build automation tools for a bit, and this week I started taking a look at one of the more manually intensive parts of the process: putting together the master bundle that will be used for the build itself.
The way things work here, individual developers don't publish bundles - they push individual packages based on the work that needs to get done. We have a person who creates builds, and the first task he has is to create the latest master bundle (for a given branch of development) from the packages that have been published. That's a fair amount of manual labor at present, so I took a look at it.
The biggest hurdle (at least in VW 7.6 - maybe later revs are better, I never delved into Store that deeply even when I was at Cincom) is the actual publishing. Normally, publishing a package or bundle requires a dialog (either PublishPackageDialog or PublishPundleDialog). You fill that in (or let it default) and off it goes. Once I gathered the things that needed publishing, I wanted to have that kick off without the UI. Let's back up a bit and take a look at the steps: first, finding newer versions of published packages within a bundle. To get there, I start with something like this:
bundleDef := BundleDef bundleNamed: 'TestBundle' version: '1.2' versionMatchString: '1.*' baseComment: 'Testing build automation' "get all the contained packages, all the way down" bundleDef allContainedPackagesAndBundles.
What that does is find all the packages that make up a bundle (including sub-bundles) by recursively asking Store for that data -like so:
allContainedPackagesAndBundlesFor: aBundle "answer a collection of all the packages I have, regardless of bundles in the middle" | items | items := aBundle containedItems. items do: [:each | each isBundle ifTrue: [self allContainedPackagesAndBundlesFor: each. containedBundles add: each] ifFalse: [containedPackages add: each]].
That gets kicked off by this API point in my code:
bundleDef allContainedPackagesAndBundles.
Then I update all the contained packages:
bundleDef updateAllPackages.
That requires some store internals work:
updateAllPackages "iterate over the packages and update them" containedPackages do: [:each | | all newerMatch | all := Store.Package allVersionsWithName: each name newerThan: each. newerMatch := all detect: [:each1 | versionFragment match: each1 version] ifNone: [nil]. newerMatch ifNotNil: [Transcript show: 'Updating: ', each name; cr. newerMatch loadSrc]].
That's the easy part. The harder part is publishing the dirty bundles, from bottom to top - you need to create an instance of PublishPundleDialog, stuff it with the right data, initialize aspects of it, and then tell it to publish. The outer method for that looks like this:
publish: aBundle "publish the bundle" | dlg | dlg := self createPublishDialogDataFor: aBundle. self setBundleCommentsFrom: dlg for: aBundle. dlg newGlobalState. [ dlg publishFromUserData ] on: Store.DbRegistry errorSignals do: [ :exp | Transcript show: 'Publish of: ', aBundle name, ' FAILED'; cr. exp return ].
The excitement is in #createPublishDialogDataFor: - which involves all the initialization of the dialog without displaying it:
createPublishDialogDataFor: imageBundle "store expects a publish dialog; create one, stuff data in, return it" | comment dlg userData fileData storeBundle | dlg := Store.PublishPundleDialog new. dlg items. dlg files. dlg blessingLevel value: 20. storeBundle := containedBundles detect: [:each | each name = imageBundle name]. comment := self getVersionStringForBundle: storeBundle. dlg blessingComment value: comment. userData := Store.PublishPundleDialog publishSpecsFrom: imageBundle. fileData := Store.PublishPundleDialog publishFileSpecsFrom: imageBundle. dlg items list: userData. dlg files list: fileData. ^dlg
The interesting part here is the dichotomy between the store bundle and the image (unpublished) one. You need to line those up, and use both as appropriate. Once you fill all the data in though, it'spretty easy. I customized the outer level API for my object so as to allow for a base comment in addition to the automated one I toss in. That'sit though - a whole lot simpler than I feared it would be. I'll probably extract this code and publish it to the public store - I think it might be generally useful. What would be even more useful would be Cincom engineering creating some actual domain objects so as to make it easier to do this without screwing around with undisplayed UI classes.
Long time Smalltalker Tom Koschate has started a new blog up, and the first post looks at his Smalltalk work.
Doing builds always yields a few surprises. THis weekend, I was asked to fill in and do a build, because the guy who normally does them wasn't available. No problem, I thought - I've built the tooling we use, after all.
Well - it's always something. Unbeknownst to me, there was a small configuration script that was still being used as part of the process that I didn't know about - so my build didn't account for that. I addressed that when I got into work this morning - no sense leaving a manual piece in the process that could easily be automated.
It's always something :)
There's a short "Flavor of Smalltalk Solutions 2011" video on the STIC site. One caveat - if you try to view that on a mobile device that doesn't support Flash (or doesn't have that support loaded), you'll just get a blank frame.
Leandro Caniglia has gotten a paper he wrote about testing (in the context of a large application he's involved in) in the magazine "Testing Experience". I can't link directly to the article (looks like you need a subscription) - but as I post this, the title of the paper:
Testing PetroVR, a software solution for the Oil & Gas Market
Is in the index.
Technorati Tags: testing
Previous | Next | (1107 total) |