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

Remove provider/channel push/pull of files #3690

Merged
merged 9 commits into from
Nov 26, 2024

Conversation

benclifford
Copy link
Collaborator

@benclifford benclifford commented Nov 8, 2024

This removes push/pull support from channels.

All the HPC providers used channel.push_file to push their batch scripts to the (no-longer) remote system. This has been a basically dead code path since removal of non-remote channels:

The channel is always a LocalChannel now (PR #3677)
The "remote" script directory is always the local script directory (PR #3688) and so LocalChannel.push_file always skips making a copy and returns the path it was given without further action.

So all the removed code is a no-op, and this PR simplifies that into nothing.

Changed Behaviour

Some providers had an option to let users decide if scripts (and other files) would be pushed/pulled to the remote system. Those options are removed by this PR.

Type of change

  • New feature
  • Code maintenance/cleanup

This has been a basically dead code path since removal of non-remote
channels:

Either a user chooses to not move files (overriding move_files to False)
and the push_file was not used.

Or the default push_file was used, but:
* this is always LocalChannel now (PR #3677)
* the script directory is always the local script directory (PR #3688)
and so the local channel code always skips making a copy

This commit simplies all of that away into using the script path directly
with putting it through the above complicated no-op.
@benclifford
Copy link
Collaborator Author

@ryanchard any chance you could test the PBS bit of this? (specifically, verify that you can make parsl submit PBS jobs ok still?)

@yadudoc you're listed as technical sponsor (#2554) for a bunch of these changed providers - can you review those?

@ryanchard
Copy link
Collaborator

I tried this on Polaris to test PBS and it all worked great.

@benclifford
Copy link
Collaborator Author

@yadudoc wakey wakey - I'd like to get the rest of channel removal done before the Parsl maintenance work ends in May.

@benclifford benclifford changed the title [draft] removing provider/channel push/pull of files Remove provider/channel push/pull of files Nov 26, 2024
@benclifford benclifford marked this pull request as ready for review November 26, 2024 11:01
@benclifford
Copy link
Collaborator Author

Treating LSF/SGE/Torque as abandoned as far as this PR goes.

Copy link
Collaborator

@khk-globus khk-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed this awhile back and was waiting for your request! Done!

@benclifford benclifford added this pull request to the merge queue Nov 26, 2024
Merged via the queue into master with commit 7c2646e Nov 26, 2024
7 checks passed
@benclifford benclifford deleted the benc-3515-remove-push-pull branch November 26, 2024 18:35
benclifford added a commit that referenced this pull request Dec 3, 2024
The final use of channel errors was removed in PR #3690
github-merge-queue bot pushed a commit that referenced this pull request Dec 3, 2024
The final use of channel errors was removed in PR #3690

This is part of #3515 channel removal project

# Changed Behaviour

Any user catching these errors explicitly will now get an error about
the exceptions being undefined. Because these don't exist any more, it
should be safe to remove those catches.

## Type of change

- Code maintenance/cleanup
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

Successfully merging this pull request may close these issues.

3 participants