Coder Social home page Coder Social logo

Comments (5)

ryandesign avatar ryandesign commented on June 27, 2024

At least one problem is here:

https://github.com/macports/buildbot-macports-custom-views/blob/master/src/components/PortsList.vue#L92-L95

                if (builder.name.includes('_')) {
                  return (
                    builder.name
                      .slice(0, builder.name.indexOf('_'))
                      .toLowerCase()
                      .indexOf(this.search.toLowerCase()) > -1

This assumes that a builder name is portname_platform and that portname does not contain underscores. The first assumption isn't correct for my installation because I changed the format of the builder names, and the second assumption isn't correct for ports like py-tensorflow_estimator whose names do contain underscores.

Can it access properties of the build? We set the portname build property to the name of the port.

from buildbot-macports-custom-views.

ImRajdeepB avatar ImRajdeepB commented on June 27, 2024

This assumes that a builder name is portname_platform and that portname does not contain underscores. The first assumption isn't correct for my installation because I changed the format of the builder names, and the second assumption isn't correct for ports like py-tensorflow_estimator whose names do contain underscores.

You're right. I had assumed some weird naming conventions.

Can it access properties of the build? We set the portname build property to the name of the port.

I'm not sure whether that could be done efficiently in the frontend (I'll check and let you know), but we could assign a tag which would basically be the portname. I think we are already doing that: https://github.com/macports-gsoc/macports-buildbot/blob/master/master.cfg#L135

from buildbot-macports-custom-views.

ryandesign avatar ryandesign commented on June 27, 2024

Yes there is a tag for the port name but there are also other tags (_virtual_ and either the macOS version or the platform for non-Darwin workers). Can you differentiate between the tags to find the one that is the port name?

from buildbot-macports-custom-views.

ImRajdeepB avatar ImRajdeepB commented on June 27, 2024

We can assign tags in a particular order (in the buildmaster) such that the first tag (in the list of tags) is always the portname. Then it would be possible to differentiate.

from buildbot-macports-custom-views.

ryandesign avatar ryandesign commented on June 27, 2024

If it preserves the order, then sure.

from buildbot-macports-custom-views.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.