flyteorg / flyte

Scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks.
https://flyte.org
Apache License 2.0
5.66k stars 632 forks source link

[BUG] Broken dev experience with single binary: console returns 404 #4697

Open katrogan opened 9 months ago

katrogan commented 9 months ago

Describe the bug

When I follow the instructions for testing out dev changes using single binary: https://docs.flyte.org/en/latest/community/contribute.html#how-to-setup-dev-environment-for-flyteidl-flyteadmin-flyteplugins-flytepropeller-datacatalog-and-flytestdlib

I'm unable to use console locally although I can trigger executions end to end

Console returns 404 page not found

Expected behavior

Should be able to use console when running the Flyte single binary without building & running flyteconsole on a separate port

Additional context to reproduce

in a shell, following https://docs.flyte.org/en/latest/community/contribute.html#how-to-setup-dev-environment-for-flyteidl-flyteadmin-flyteplugins-flytepropeller-datacatalog-and-flytestdlib

flytectl demo start --dev

FLYTECTL_CONFIG=/home/ubuntu/.flyte/config-sandbox.yaml

go mod tidy

# Step3: Edit the config file: ./flyte-single-binary-local.yaml.
# Replace occurrences of $HOME with the actual path of your home directory.
sedi=(-i)
case "$(uname)" in
  Darwin*) sedi=(-i "")
esac
sed "${sedi[@]}" -e "s|\$HOME|${HOME}|g" flyte-single-binary-local.yaml

mkdir $HOME/.flyte/cluster-resource-templates/
echo "apiVersion: v1
kind: Namespace
metadata:
  name: '{{ namespace }}'" > $HOME/.flyte/cluster-resource-templates/namespace.yaml

POD_NAMESPACE=make compile && flyte $HOME/go/bin/flyte/flyte start --config flyte-single-binary-local.yaml

Screenshots

No response

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

Have you read the Code of Conduct?

dosubot[bot] commented 9 months ago

🤖

Hello @katrogan!

I'm Dosu, a friendly bot here to assist you with your Flyte issues. It's my first time meeting you, so I just wanted to say it's nice to e-meet you! I'm here to help bridge the gap while we wait for a human maintainer to step in.

I'll be taking a look at your issue with the console returning a 404, and I hope to provide you with a full response soon. Hang tight!

katrogan commented 9 months ago

cc @pvditt

katrogan commented 9 months ago

I was able to get this working by messing with the generated dist/ dir. Not sure if some caching issue with the build