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

Index not found - looks like hooks are not fired up #1603

Open
karol-pieciukiewicz opened this issue May 9, 2024 · 5 comments
Open

Index not found - looks like hooks are not fired up #1603

karol-pieciukiewicz opened this issue May 9, 2024 · 5 comments

Comments

@karol-pieciukiewicz
Copy link

Pipeline for services creation runs successfully, however I'm missing index in cognitive search and authentication in the app service. anyone faced this issue?

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Fork repo and run deploy. Configuration of the pipeline:
image

Any log messages given by the failure

The pipeline can be found here: https://github.com/azure-way/rag/actions/runs/9015766065
In the infrastrucuture provision I have message: hooks.go:52: azd environment is not available, skipping all hook registrations.

Expected/desired behavior

run hooks for index creation

OS and Version?

GitHub runner version: '2.316.1'

azd version?

azd version 1.9.0

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@pamelafox
Copy link
Collaborator

Hm, I haven't seen that before. @vhvb1989 Could you take a look at that pipeline? It looks like it skipped the hooks for some reason.

@vhvb1989
Copy link
Contributor

It is an issue on azd. I've created: Azure/azure-dev#3920
Also create PR for you @karol-pieciukiewicz : azure-way#1 with a workaround you can use.

@pamelafox , this means that any project-hook is currently ignored in CI :(

@karol-pieciukiewicz
Copy link
Author

karol-pieciukiewicz commented May 17, 2024 via email

@karol-pieciukiewicz
Copy link
Author

karol-pieciukiewicz commented May 17, 2024 via email

@pamelafox
Copy link
Collaborator

@karol-pieciukiewicz Ah good catch, we have to do similar checks in our other code, though we've been using os.getenv(BLA) or default. Having a helper function makes sense, PR welcome!

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

No branches or pull requests

3 participants