Dry-run/test builds (OD-2344)
sev opened 10 months ago

Some jobs may write data, or perform operations of limited capacity, like pushing to a repo, uploading files to a server, or starting a remote task that costs money (e.g. AI credits). Having some way to dry-run/test a build while skipping potentially volatile/costly steps would be useful.

My usecase is testing my builds with tod. My build has steps that write to remote locations. I either have to live with that and clean up afterwards; remove the steps I don't want (a painful process) before running with tod, and restore any changes before committing; or maintain a separate test build, and manually sync changes between the two. All three options are not fun.

  • Robin Shen commented 10 months ago

    OneDev itself does not actually know which step should run or not in dry run mode. I'd suggest to define a parameter say "dryrun" and check value of the variable to determine which logic should be performed inside your script.

  • Robin Shen changed state to 'Closed' 10 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Improvement
Priority
Minor
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2344
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover