Skip to content

package tango #17127

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

Merged
merged 27 commits into from
Dec 8, 2021
Merged

package tango #17127

merged 27 commits into from
Dec 8, 2021

Conversation

h-vetinari
Copy link
Member

Gonna be necessary for the allennlp-stack, see e.g. here

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/tango) and found it was in an excellent condition.

@h-vetinari
Copy link
Member Author

h-vetinari commented Dec 1, 2021

@dirkgr @epwalsh could you have a look here?
I'm already skipping TestMetadata (because checking whether allenai/tango is a remote really makes no sense outside of your development setup), but I cannot determine whether the following failure (OSX-only) is relevant:

____________________ TestMain.test_deterministic_experiment ____________________
[...]
        # Check metadata.
        metadata_path = self.TEST_DIR / "hello_world" / "executor-metadata.json"
        assert metadata_path.is_file()
        metadata_params = Params.from_file(metadata_path)
        metadata = ExecutorMetadata.from_params(metadata_params)
        assert metadata.config == {
            "type": "concat_strings",
            "string1": {"type": "ref", "ref": "hello"},
            "string2": "World!",
            "join_with": ", ",
        }
>       assert metadata.git.commit is not None
E       AttributeError: 'NoneType' object has no attribute 'commit'

Seems that ExecutorMetadata does not create a member metadata.git, but I'm not sure if that's relevant?

@dirkgr
Copy link

dirkgr commented Dec 1, 2021

I think it's possible that this test can't run outside of a git directory. I'm taking a look.

@h-vetinari
Copy link
Member Author

I think it's possible that this test can't run outside of a git directory.

I have git running in the test environment, and the test passes on linux, but not on osx for some reasons.

I'm taking a look.

Thanks!

@dirkgr
Copy link

dirkgr commented Dec 1, 2021

Skipping TestMetadata makes sense, but it would be nice if we could keep test_deterministic_experiment. Is there an environment variable we could look for that's set in conda builds?

@dirkgr
Copy link

dirkgr commented Dec 1, 2021

Actually, I can check for the presence of the .git directory. If it's there, those members should be filled.

@dirkgr
Copy link

dirkgr commented Dec 1, 2021

@h-vetinari, how about allenai/tango#99?

@h-vetinari
Copy link
Member Author

@h-vetinari, how about allenai/tango#99?

Fine by me! :)

@h-vetinari
Copy link
Member Author

@conda-forge/staged-recipes
This one should be ready.

Copy link
Member

@xhochy xhochy left a comment

Choose a reason for hiding this comment

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

Should this have a pip check somewhere?

@h-vetinari
Copy link
Member Author

Should this have a pip check somewhere?

Let me ask differently - given a passing test suite, what useful information does pip check still cover? I get that it's used often where the upstream test suite is not run, but would you consider it necessary (or even just best practice) if the test suite is being run already?

(not against adding a pip check, just trying to clarify)

@xhochy
Copy link
Member

xhochy commented Dec 7, 2021

It checks "roughly" for the correct pinnings. In some cases, tests still pass although the pinnings conflict. In some cases (Tensorflow :D ) the upstream pinnings are much tighter than what works and thus we forget them in the recipe. This is not a problem for the package itself but for packages consuming it.

@xhochy
Copy link
Member

xhochy commented Dec 7, 2021

"but for packages consuming it." … and have a pip check but no tests.

@xhochy xhochy merged commit bda5cb6 into conda-forge:main Dec 8, 2021
@h-vetinari h-vetinari deleted the tango branch December 8, 2021 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants