Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backing up CFG and INI: Working area needs to be changed to mu2epro #214

Open
sophiemiddleton opened this issue Nov 10, 2022 · 2 comments
Open
Assignees

Comments

@sophiemiddleton
Copy link
Collaborator

Currently when testing there is no record of the CFG and INI used for a specific test. It is possible to find out the parameters via reverse engineering but it takes time.

We should make sure tests are backed up. To do this we could use the mu2epro account. I suggested this to Ray, hear are his thoughts:

" It is hard to imagine all the details at once, but here
is the direction I would try. Note that the mu2epro
home area is backed up every night.

  • in the mu2epro home area create your
    working dir, something like "prodTest"
  • checkout Production repo there
  • rework the cfg so it has a switch, something like
    codesource=/mu2e/app/home/mu2epro/prodTest
    codesource=/cvmfs/.../MDC2020u
    so you can easily switch back and forth
  • make changes in the local Production repo, commit
    as they are finalized
  • while you are at it add a switch like
    outputDir=/pnfs/mu2e/tape/...
    outputDir=/pnfs/mu2e/persistent/...
    so you can switch that back and forth.
    you might be able to make both into one switch
  • I'd make POMS changes in the GUI
    and run off that for tests. you might need a switch there too.

When tests are done,

  • set switches to production mode
  • extract POMS GUI to an ini, add that
    to the local repo
  • update cvmfs codeSource to point to next tag
  • commit all, tag, publish
  • run production

This a bit messy. The main thing is to summarize
test mode vs production mode with a few switches,
so there is minimal to remember when you make the switch.
It is also less likely to create a bug.

I think everything intended for production should be done in
the mu2epro account."

There are two things to do here:

  1. Set up the mu2epro home area
  2. Add these new switches
@sophiemiddleton sophiemiddleton self-assigned this Nov 10, 2022
@kutschke
Copy link
Collaborator

kutschke commented Nov 10, 2022 via email

@kutschke
Copy link
Collaborator

We we discuss #216 and #216, we should think about this too. I suspect that finding a good solution for those will make it easier to solve this problem.

@sophiemiddleton sophiemiddleton changed the title Backing up CFG and INI Backing up CFG and INI: Working area needs to be changed to mu2epro Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants