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 viper config serialization #926

Closed

Conversation

uncleDecart
Copy link
Member

This continues work on removing viper from openevec package so that we can create default configuration structure and use it to call openevec functions in golang.

In this PR use EdenSetupArgs default generated config in config add function. That means that we remove configuration generated from templates (so there are no comments or spacing in file, just pure yml, we can, of course add template comments to struct fields in go file)
Also we force cloudPrepare() function to use EdenSetupArgs, because before it fetched variables from viper, which creates unnecessary coupling and forces us to create file and use viper in openevec.

So far I played with default parameters, will try to change configurations.

@uncleDecart uncleDecart requested a review from giggsoff November 20, 2023 10:08
@giggsoff
Copy link
Collaborator

giggsoff commented Nov 21, 2023

It looks like something broken: https://github.com/lf-edge/eden/actions/runs/6902762877/job/18780102814#step:11:21. As I can see there is double dist in path there.

@uncleDecart uncleDecart force-pushed the remove-viper-config-serialization branch from 1328f39 to 8ddcc61 Compare November 21, 2023 09:39
@uncleDecart
Copy link
Member Author

Let's try this one :)

@uncleDecart
Copy link
Member Author

There are some more changes needed in test cmd

@uncleDecart uncleDecart force-pushed the remove-viper-config-serialization branch from 8ddcc61 to 6a091fe Compare November 22, 2023 12:12
@uncleDecart
Copy link
Member Author

Okaay, test cmd fixed, let's see how it runs 🤞

@uncleDecart
Copy link
Member Author

That's weird, locally smoke tests are running, in CI/CD tests are green, but I think they didn't run (10 mins is way to less for tests to finish)

@uncleDecart
Copy link
Member Author

log_tests is failing, something is wrong with certificate path, looking into it...

@uncleDecart uncleDecart force-pushed the remove-viper-config-serialization branch from 6a091fe to e224bb8 Compare November 24, 2023 08:36
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
cleanContext is only used in OpenEVEC EdenClean function.
Tightly coupled functions should be in one module. Also,
there is cloudPrepare function which uses viper, which
we will change

Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Previously, this functions used viper to fetch variables, since we want to
decouple openevec and viper, now they use EdenSetupArgs to fetch parameters

Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
@uncleDecart uncleDecart force-pushed the remove-viper-config-serialization branch from e224bb8 to d5c21ea Compare November 27, 2023 07:46
@uncleDecart
Copy link
Member Author

tests are passing, but we are failing on getting logs, checking what's up

@uncleDecart
Copy link
Member Author

superseded by #1037

@uncleDecart uncleDecart closed this Nov 5, 2024
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.

2 participants