Skip to content

Remove unused test fixtures, agent-service barrels and redundant code #9685

Description

@aglinxinyuan

Task Summary

Remove code that nothing uses, and constructs that repeat a default or an alias, from the Python tests, the agent service, three frontend specs, the single-node example loader, the AsterixDB source and the RustFS test container, without changing behavior:

  • Python tests: drop the unused internal_queue and timed_buffer fixtures and their imports, two fixture parameters that their tests never read, and an unused loop variable. Write dict(...) calls as literals, return from fixtures that yield without teardown, drop empty @pytest.fixture() parentheses, merge nested with blocks, and use datetime.UTC, TimeoutError and b"" for datetime.timezone.utc, socket.timeout and bytes().
  • Agent service: delete the src/agent/index.ts and src/api/index.ts barrels, which no file imports, and two unused type imports in workflow-system-metadata.ts.
  • Frontend specs: drop TestBed modules that the dataset and model creator fixtures already provide, and three modules the admin Gmail spec does not need.
  • load-examples.sh: drop a jq failure check that set -euo pipefail makes unreachable.
  • AsterixDB source: assign the version response and the parsed row once as vals instead of overwriting null and None placeholders.
  • RustFSContainer: drop a comment that calls the console disabled; RustFS 1.0.0 enables it by default and the fixture does not override it.

Introduced by:

Usage removed by:

This is a cleanup with no behavior change.

Task Type

  • Refactor / Cleanup

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @aglinxinyuan!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  3. added a commit that references this issue on Nov 25, 2026
    315de0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions