Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

@amoghrajesh amoghrajesh commented Jul 14, 2023

Revising the instructions on how to run the back referring scripts now that it is present with breeze

@amoghrajesh
Copy link
Contributor Author

@potiuk looks to me that this is the final PR to wind up the issue :)

cd post-docs
python add-back-references.py airflow
cd ..
breeze release-management add-back-references --airflow-site-director DIRECTORY --gen-type airflow
Copy link
Member

Choose a reason for hiding this comment

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

You should not add the flag here. Those are real copy-pasteable instructions, it should just-work

You should remove the flags, and ENVVAR will kick in here. If you look up AIRLFOW_SITE_DIRECTORY is set few steps above , so just running it without the flag should work here (and in the other places).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay makes sense. Corrected it!

Copy link
Member

Choose a reason for hiding this comment

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

What I mean is to remove the flag altogether - this is how it works

@potiuk potiuk merged commit cdb11dd into apache:main Jul 15, 2023
cd "${AIRFLOW_SITE_DIRECTORY}"
cd post-docs
python add-back-references.py providers
breeze release-management add-back-references --airflow-site-directory --gen-type providers
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't work for me

➜  airflow-site git:(main) ✗ breeze release-management add-back-references --airflow-site-directory --gen-type providers
                                                                                                                                                                                     
 Usage: breeze release-management add-back-references [OPTIONS]                                                                                                                      
                                                                                                                                                                                     
                                                                                                                                                                                     
 Try running the '--help' flag for more information.                                                                                                                                 
                                                                                                                                                                                     
╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Missing option '-g' / '--gen-type'.                                                                                                                                               │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
                                                                                                                                                                                     
                                                                                                                                                                                     
 To find out more, visit https://github.com/apache/airflow/blob/main/BREEZE.rst                                                                                                      
                                                                                                                                                                                     
    

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reporting
I will have a look at it and fix it soon if there's an issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you try without the --airflow-directory? What does it complain?

Copy link
Member

Choose a reason for hiding this comment

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

Yes --airflow-site-directory is a clear problem. It treats --gen-dir as value of the --airflow-site-directory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, i have fixed this in a follow up PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants