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

[Feature]: Have tcr check subcommand verify perforce environment #230

Closed
26 of 27 tasks
mengdaming opened this issue Feb 1, 2023 · 0 comments · Fixed by #257
Closed
26 of 27 tasks

[Feature]: Have tcr check subcommand verify perforce environment #230

mengdaming opened this issue Feb 1, 2023 · 0 comments · Fixed by #257
Assignees
Labels
enhancement New feature or request M Medium murex Items related to using TCR at Murex perforce Perforce related issues

Comments

@mengdaming
Copy link
Contributor

mengdaming commented Feb 1, 2023

Contact Details

damien.menanteau@gmail.com

Feature Request

Current TCR implementation does not check any perforce-related configuration and environment when running TCR with perforce.

Objective is to make sure everything p4-related is ready / properly configured when running with --vcs=p4 option.

Feature Description

TBC

Alternatives

N/A

Additional Context

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

To Do

  • tcr check command runs reports all p4-specific checks
    • run VCS-specific checks depending on the VCS being used by TCR (git or p4)
    • p4 command
      • look for it in the path
        • if present, report full path
        • if not present -> error
      • display p4 command version?
    • p4 client/workspace
      • retrieve it from p4 info
        • if set, report its value
        • if not set -> error
    • p4 root directory
      • retrieve it from p4 info
        • if set, report its value
        • if not set -> error
      • check if TCR base dir is under p4 root dir
        • report error if not
      • check if TCR work dir is under p4 root dir
        • report error if not
    • other p4 info. Do we want to display them?
      • User Name
      • Client host
      • Current directory
      • Peer address
      • Client address
      • Server address
      • Server root
      • Server date
      • Server uptime
      • Server version
      • ServerID
      • Server services
      • Server license
      • Server license-ip
      • Case Handling
  • Test on other machines
  • Test isSubPath

Parking

  • Move the function isSubPath to a utility package
    • Do the path cleaning in the isSubPath method instead of outside
  • Discuss about how to test
@mengdaming mengdaming added enhancement New feature or request M Medium labels Feb 1, 2023
@mengdaming mengdaming added perforce Perforce related issues murex Items related to using TCR at Murex labels Feb 15, 2023
aatwi pushed a commit that referenced this issue Feb 15, 2023
mengdaming pushed a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
- Split windows specific tests for IsSubPath in own file
- handle the case where refPath is blank
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
philou added a commit that referenced this issue Feb 15, 2023
….Prefix

To be able to diagnose P4 setup issues
- pass a new test case
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
- extract windows specific P4 tests to their own file
@philou philou linked a pull request Feb 15, 2023 that will close this issue
5 tasks
philou pushed a commit that referenced this issue Feb 15, 2023
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
- Split windows specific tests for IsSubPath in own file
- handle the case where refPath is blank
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
philou added a commit that referenced this issue Feb 15, 2023
….Prefix

To be able to diagnose P4 setup issues
- pass a new test case
philou added a commit that referenced this issue Feb 15, 2023
To be able to diagnose P4 setup issues
- extract windows specific P4 tests to their own file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request M Medium murex Items related to using TCR at Murex perforce Perforce related issues
Development

Successfully merging a pull request may close this issue.

3 participants