flyteorg / flyteorg/flyte

[BUG] [copilot] File extensions are missing when copilot downloads Blob/FlyteFile inputs

Open
#7,024 3 comments 0 reactions 0 assignees View on GitHub
bug untriaged
Dominant language
Go
Stars
7.5k
Forks
886
Avg merge
1d 14h
Merged PRs (30d)
120

Description

### Flyte & Flytekit version

Flyte 1.16

### Describe the bug

Copilot today has the following behavior:

```
# ContainerTask, as an example
def t1(file: FlyteFile["csv"]):
... # copilot downloads the file to e.g. /inputs/file
```

Sometimes, this is unintuitive (perhaps a bug? or an enhancement request? not clear...) and it may be expected that the file is downloaded to `/inputs/file.csv` instead.

### Expected behavior

The file is downloaded to `/inputs/file.csv` instead. However, the "bugfix" must be done carefully, as it is likely that existing workflows are already expecting the file to be downloaded to `/inputs/file`.

### Additional context to reproduce

_No response_

### Screenshots

_No response_

### Are you sure this issue hasn't been raised already?

- [x] Yes

### Have you read the Code of Conduct?

- [x] Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.