Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Programming Software Technology Hardware

Environment Variables - Dev/Test/Production? 77

Woody asks: "It's common knowledge that the development environment should be the same as the test environment which should mimic the production environment whenever possible. I'm currently working on a project where we develop on Dell, test on IBM, and the production system is up in the air. For embedded systems the differences can be running on a VM versus running on the actual hardware. What I want to know is what kind of problems have Slashdot readers been faced with because of different environments being used for different phase of their projects, and how have they been overcome?"
This discussion has been archived. No new comments can be posted.

Environment Variables - Dev/Test/Production?

Comments Filter:
  • Re:Apropos (Score:4, Interesting)

    by SpaceLifeForm ( 228190 ) on Wednesday January 19, 2005 @02:46PM (#11410762)
    That is all good and fine, however, you didn't address the issue of environment variables, which your testing/QA people are typically afraid to change (or conversely, they do change and create a mess).

    The best approach is to create an environment variable that defines the development environment, example DEVENV=DEV, DEVENV=TEST, DEVENV=IT, DEVENV=QA, DEVENV=PROD (or not needed for production at all), and then elsewhere (controlled and basically kept hidden from the testers or users), other environment variables are set based upon the value of DEVENV. Examples of these environment variables would be your PATH variables, ORACLE_SID, etc.

    Then, the final problem is educating the testers what DEVENV means, and more importantly, why that one has to be correct and that they should not mess with any other environment variables.

    If the testers can't understand that, you need smarter testers.

  • hyperthreading (Score:3, Interesting)

    by marcovje ( 205102 ) on Thursday January 20, 2005 @08:05AM (#11418203)

    One of the worst problems I had was related to hyperthreading. Turned out an 3rd party component that was a black box was threadsafe, but not multi-processing safe.

    When I finally figured it out (of course it happened only once in days, had to write and tune exercisers for weeks to get it to occur within minutes), an update became available.
    (we nailed 4 from the 6 spots in that patch already ourselves by then)

Work without a vision is slavery, Vision without work is a pipe dream, But vision with work is the hope of the world.

Working...